Skip to main content

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.

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

Path Parameter

NameTypeDescription
idstringThe unique ID of the task request.

Request Body

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

Request Body Explanation

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

AUTHORIZATION

Bearer

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!