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 and returns 204 with no body. Deleting the same absence again returns 404. Removing an absence can return current duty to the person whose turn applies. Other absences and assignments still apply. Time already served is unchanged. Read GET /v1/rotations/{rotationId}/on-call to check the result; 204 confirms the deletion, not that a duty change has completed. An absence that applies to all rotations is removed from all of them, not only 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 format: int32
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 format: int32
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 format: int32
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 format: int32
detail
null | string
instance
null | string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}