update destination address of an existing dispatch
PATCH
/ext/dispatch/{id}/destination
curl \
--request PATCH 'https://dev.hubz.nyotek.com/ext/dispatch/{id}/destination' \
--header "Content-Type: application/json" \
--data '{"ref_id":"b93d16aa-e34d-4c65-b6ef-acdcca470615","lat":24.712181,"lng":46.679747,"address_line":"ابي البدر الموسوي, As Sulimaniyah, Riyadh 12244, Saudi Arabia"}'
Request examples
{
"ref_id": "b93d16aa-e34d-4c65-b6ef-acdcca470615",
"lat": 24.712181,
"lng": 46.679747,
"address_line": "ابي البدر الموسوي, As Sulimaniyah, Riyadh 12244, Saudi Arabia"
}
Response examples (401)
{
"error": "generic error",
"error_desc": "identifier 45 not found"
}
Response examples (404)
{
"error": "generic error",
"error_desc": "identifier 45 not found"
}
Response examples (500)
{
"error": "generic error",
"error_desc": "identifier 45 not found"
}