Skip to content

Drop shift

PATCH {{baseUrl}}/shifts/drop

Drops a shift the driver previously claimed. Source: models/shifts.ts drop().

Response fields:

  • status — ShiftResultStatus enum: Success, or IllegalShiftCancel if a runner tries to drop within 48 hours of the shift start (admins are exempt from that window).
  • shift — the updated Shift row (user_id cleared, reason set).
{
"id": "<shift-id>",
"reason": ""
}
Terminal window
curl --request PATCH 'https://api.firstdelivery.com/api/shifts/drop' \
--header 'Content-Type: application/json' \
--data '{
"id": "<shift-id>",
"reason": ""
}'
{
"status": "Success",
"shift": {
"id": "<shift-id>",
"user_id": null,
"reason": "",
"checked_in": null,
"start": "2026-06-23T16:00:00.000Z",
"stop": "2026-06-23T20:00:00.000Z"
}
}