Upload Task Request Result
Method: PATCH
/api/v1/task-requests/{id}/upload-result
Descriptionβ
This endpoint allows uploading documents related to a specific task request. Users can attach multiple document links as part of the taskβs results.
π Authenticationβ
This endpoint requires authentication via headers.
| Param | Value | Type |
|---|---|---|
tenantId | {{tenantId}} | string |
userId | {{userId}} | string |
countryCode | {{countryCode}} | string (optional) |
Path Parameterβ
| Name | Type | Description |
|---|---|---|
id | string | The unique ID of the task request. |
Request Bodyβ
{
"userId": "string",
"docLinks": [
{
"name": "string",
"link": "string"
}
]
}
Request Body Explanationβ
| Name | Type | Description |
|---|---|---|
userId | string | The ID of the user uploading the task result. |
docLinks | array | A list of document links associated with the task result. |
docLinks[].name | string | The name or description of the document (e.g., "Inspection Report"). |
docLinks[].link | string | A URL linking to the document. |
Response: 200β
{
"message": "Task result uploaded successfully.",
"taskRequestId": "12345",
"uploadedBy": "user123"
}
LANGUAGE
CURL REQUEST
curl --request PATCH \
--url /api/v1/task-requests/{id}/upload-result \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!