Skip to content

Clear an absence

DELETE
/v1/rotations/{rotationId}/availability/{absenceId}
curl --request DELETE \
--url https://api.roundrobinbot.eu/v1/rotations/example/availability/example \
--header 'Authorization: Bearer <token>'

Removes the absence, so hand-overs stop passing over the person it named. Answers 204 with no body, and a second delete of the same absence answers 404. It does not put anybody back on duty. A shift that was dealt to somebody else while this absence stood stays theirs, because a hand-over is decided once and never revisited. An absence that covers every rotation is cleared everywhere, not only for the rotation in the path.

rotationId
required
string
absenceId
required
string

No Content

Media typeapplication/json

Bad Request

Media typeapplication/json
object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Unauthorized

Media typeapplication/json
object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Forbidden

Media typeapplication/json
object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Not Found

Media typeapplication/json
object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}