Delete Shift
Delete a staff shift. This action is permanent and cannot be undone.
Endpointโ
DELETE /v1/staff/shifts/{id}
Authenticationโ
Requires an API key with the staff:write scope.
Path Parametersโ
| Parameter | Type | Description |
|---|---|---|
id | integer | The shift ID |
Responseโ
Success (200 OK)โ
{
"data": {
"deleted": true
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2026-03-10T09:30:00+00:00"
}
}
Errorsโ
| Status | Code | Description |
|---|---|---|
| 401 | authentication_required | No API key provided |
| 401 | invalid_api_key | Invalid API key |
| 403 | insufficient_scope | API key lacks staff:write scope |
| 403 | forbidden | Shift belongs to a different supplier |
| 404 | not_found | Shift not found |
Example Requestโ
curl -X DELETE "https://app.equipdash.com/api/v1/staff/shifts/15" \
-H "Authorization: Bearer eqd_live_abc123xyz789..."