Skip to content

Get a duty arrangement

GET
/v1/rotations/{rotationId}/duty-arrangements/{arrangementId}
curl --request GET \
--url https://api.roundrobinbot.eu/v1/rotations/example/duty-arrangements/example \
--header 'Authorization: Bearer <token>'

Requires read:oncall. Returns the arrangement, its current capabilities and the rotation ETag. A cancelled arrangement remains readable by identifier. An arrangement outside this rotation is not found.

rotationId
required
string

The rotation identifier.

arrangementId
required
string

The arrangement identifier.

OK

Media typeapplication/json

One arrangement and its current permitted actions.

object
arrangement
required

The requested arrangement, including a cancelled arrangement when addressed by identifier.

object
cellId
required

The rotation cell identifier.

string
changesAtUtc
required

The next instant at which phase changes, or null once it has ended.

null | string format: date-time
from
required

The inclusive UTC start.

string format: date-time
id
required

The arrangement identifier.

string
kind
required

directAssignment, acceptedCover or swapLeg. Direct-assignment writes change or end only directAssignment.

string
origin
One of:
null
originalSnapshot
One of:
null
phase
required

upcoming, running or ended, from from and to at the time the response is built.

string
revision
required

The arrangement revision used when changing or ending it.

integer format: int64
rotationId
required

The rotation identifier.

string
state
required

active or cancelled. An active record can describe an interval that has already ended.

string
to
required

The exclusive UTC end.

string format: date-time
turnSelection
One of:
null
userId
required

The assigned person’s Slack user identifier.

string
capability
required

The caller’s current change and end capabilities.

object
canChange
required

Whether the caller can change the direct assignment, subject to write validation.

boolean
canEnd
required

Whether the caller can end the remaining direct assignment.

boolean
reason
required

A refusal code when the actions are unavailable; otherwise null.

null | string
reasonCode
required

The same word as reason; otherwise null.

null | string
Examplegenerated
{
"arrangement": {
"cellId": "example",
"changesAtUtc": "2026-04-15T12:00:00Z",
"from": "2026-04-15T12:00:00Z",
"id": "example",
"kind": "example",
"origin": {
"complete": true,
"userIds": [
"example"
]
},
"originalSnapshot": {
"asOfUtc": "2026-04-15T12:00:00Z",
"complete": true,
"from": "2026-04-15T12:00:00Z",
"segments": [
{
"from": "2026-04-15T12:00:00Z",
"resolved": true,
"to": "2026-04-15T12:00:00Z",
"userIds": [
"example"
]
}
],
"to": "2026-04-15T12:00:00Z"
},
"phase": "example",
"revision": 1,
"rotationId": "example",
"state": "example",
"to": "2026-04-15T12:00:00Z",
"turnSelection": {
"from": "2026-04-15T12:00:00Z",
"kind": "example",
"to": "2026-04-15T12:00:00Z"
},
"userId": "example"
},
"capability": {
"canChange": true,
"canEnd": true,
"reason": "example",
"reasonCode": "example"
}
}