Update Task Logistic
Method: PATCH
/api/v1/tasks/{id}/logistic
Description
This endpoint updates logistic details for a specific task. It allows updating the logistics provider's name, address, phone number, vehicle registration, and any additional metadata.
🔑 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 to update. |
Request Body
{
"name": "string",
"address": "string",
"phoneNumber": "string",
"vehicleReg": "string",
"metadata": {}
}
Request Body
| Name | Type | Description |
|---|---|---|
name | string | The name of the logistics provider. |
address | string | The address of the logistics provider. |
phoneNumber | string | The contact phone number for the logistics provider. |
vehicleReg | string | The vehicle registration number for the logistics provider. |
metadata | object | Additional metadata for the task (e.g., special instructions). |
Response: 200
{
"message": "Task logistic details updated successfully.",
"taskId": "12345",
"updatedLogistic": {
"name": "Fast Logistics",
"address": "456 Logistics Street",
"phoneNumber": "+2348012345678",
"vehicleReg": "ABC-1234",
"metadata": {}
}
}
LANGUAGE
CURL REQUEST
curl --request PATCH \
--url /api/v1/tasks/{id}/logistic \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!