Skip to main content

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.

ParamValueType
tenantId{{tenantId}}string
userId{{userId}}string
countryCode{{countryCode}}string (optional)

Path Parameter​

NameTypeDescription
idstringThe unique ID of the task to update.

Request Body​

{
"name": "string",
"address": "string",
"phoneNumber": "string",
"vehicleReg": "string",
"metadata": {}
}

Request Body​

NameTypeDescription
namestringThe name of the logistics provider.
addressstringThe address of the logistics provider.
phoneNumberstringThe contact phone number for the logistics provider.
vehicleRegstringThe vehicle registration number for the logistics provider.
metadataobjectAdditional 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

AUTHORIZATION

Bearer

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!