PATCH /ext/dispatch/{id}/pickup

update pickup address of an existing dispatch

Path parameters

  • id string Required

    ID of the dispatch to use

application/json

Body

  • ref_id string

    Unique identifier for an address

  • lat number(double) Required
  • lng number(double) Required
  • address_line string

Responses

  • 204

    successful operation

  • 401 application/json

    Unauthorized if incorrect api_key is given

    Hide response attributes Show response attributes object
    • error string

      generic information about the error

    • error_desc string

      error information for the developer

  • 404 application/json

    if the dispatch id is not found in the system

    Hide response attributes Show response attributes object
    • error string

      generic information about the error

    • error_desc string

      error information for the developer

  • 500 application/json

    any other errors from the server

    Hide response attributes Show response attributes object
    • error string

      generic information about the error

    • error_desc string

      error information for the developer

PATCH /ext/dispatch/{id}/pickup
curl \
 --request PATCH 'https://dev.hubz.nyotek.com/ext/dispatch/{id}/pickup' \
 --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"
}