Skip to content

Unassign driver

PUT/journeys/{id}/unassign-driver

Auth: X-API-Key headerhttps://warpdrive.staging.transferz.com/transfercompanies

Unassigns the currently selected driver from the journey

Removes the driver (and with it the vehicle) from the journey. By default the driver is told by SMS; send notifyBySms=false to skip that.

Guide: Assign a driver and a vehicle

Path parameters

  • idinteger · int64required

    The id of the journey to update

Query parameters

  • notifyBySmsboolean

    Whether to tell the driver by SMS that the journey was removed. Default true.

    Default: true

Headers

  • X-Request-IDstring

    The optional (ideally unique) request identifier used for later analysis or diagnostics

Responses

No content

Errors this endpoint can return

  • 400, failedUNKNOWN

    When: The journey is completed or cancelled.

    What to do: For 400, read message and correct the request. For 500, retry once; if it persists, contact Transferz support with the X-Request-ID you sent.

  • When: The journey is not assigned to your company (also returned for an unknown id).

    What to do: Check that the id belongs to your company and that you use the key of the right user. Ask Transferz to check the account's permissions if the id is correct.