Overview /
Operations /
Delete a shift
Delete a shift
delete
https://api.flactrum.com/v1/shifts/{shift}
A shift with assignments cannot be deleted; past planning would disappear.
| Required scope | shifts.write |
| Success status | 204 |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| shift * | path | string | ULID of the record. |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X DELETE 'https://api.flactrum.com/v1/shifts/01m43mzajhtwxa3zcyjz55tgf4' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 204
(empty body)
curl -X DELETE 'https://api.flactrum.com/v1/shifts/01m43mzaw8r7q0800974s1044g' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 409 · application/json
{
"error": {
"code": "conflict",
"message": "This shift has 1 assignment(s) and cannot be deleted.",
"details": {
"assignment_count": 1
}
}
}