Delete Time Off
Permanently delete a time-off request.
Endpointโ
DELETE /v1/staff/time-off/{id}
Authenticationโ
Requires an API key with the staff:write scope.
Path Parametersโ
| Parameter | Type | Description |
|---|---|---|
id | integer | Time-off request ID |
Responseโ
Success (200 OK)โ
{
"data": {
"deleted": true
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2026-04-01T09:00: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 |
| 404 | not_found | Request not found or belongs to another supplier |
Example Requestโ
curl -X DELETE "https://app.equipdash.com/api/v1/staff/time-off/7" \
-H "Authorization: Bearer eqd_live_abc123xyz789..."