Unassign driver
PUT
/journeys/{id}/unassign-driverAuth: 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.
Path parameters
Query parameters
Headers
Responses
No content
Errors this endpoint can return
- 400, failedUNKNOWN
When: The journey is completed or cancelled.
What to do: For 400, read
messageand correct the request. For 500, retry once; if it persists, contact Transferz support with the X-Request-ID you sent. - 403, failedINSUFFICIENT_PERMISSIONS
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.