Update Task Request Logistic
Method: PATCH
/api/v1/task-requests/{id}/logistic
Description
This endpoint updates the logistic details for a specific task request. The update includes information such as the logistic provider's name, address, phone number, vehicle registration, and metadata.
🔑 Authentication
This endpoint requires authentication via headers.
| Param | Value | Type |
|---|---|---|
countryCode | {{countryCode}} | string (optional) |
userId | {{userId}} | string (optional) |
tenantId | {{tenantId}} | string (optional) |
Path Parameter
| Name | Type | Description |
|---|---|---|
id | string | The unique ID of the task request. |
Request Body
{
"name": "string",
"address": "string",
"phoneNumber": "string",
"vehicleReg": "string",
"metadata": {}
}
Request Body Explanation
| Name | Type | Description |
|---|---|---|
name | string | The name of the logistic provider. |
address | string | The physical address of the logistic provider. |
phoneNumber | string | The phone number of the logistic provider. |
vehicleReg | string | The vehicle registration number. |
metadata | object | Additional information or metadata about the logistic provider. |
Response: 200
{
"message": "Logistic details updated successfully.",
"taskRequestId": "12345",
"logisticDetails": {
"name": "ABC Logistics",
"address": "123 Main Street",
"phoneNumber": "+1234567890",
"vehicleReg": "XYZ-123",
"metadata": {}
}
}
LANGUAGE
CURL REQUEST
curl --request PATCH \
--url /api/v1/task-requests/{id}/logistic \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!