List schedule rotations
curl --request GET \
--url https://api.rootly.com/v1/schedules/{schedule_id}/schedule_rotations \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": "<string>",
"type": "schedule_rotations",
"attributes": {
"schedule_id": "<string>",
"name": "<string>",
"position": 123,
"schedule_rotationable_type": "ScheduleDailyRotation",
"active_all_week": true,
"active_days": [
"S"
],
"active_time_type": "<string>",
"active_time_attributes": [
{
"start_time": "<string>",
"end_time": "<string>"
}
],
"time_zone": "Etc/UTC",
"schedule_rotationable_attributes": {
"handoff_time": "<string>"
},
"start_time": "2023-12-25",
"end_time": "2023-12-25"
}
}
],
"links": {
"self": "<string>",
"first": "<string>",
"prev": "<string>",
"next": "<string>",
"last": "<string>"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
success
The response is of type object
.
curl --request GET \
--url https://api.rootly.com/v1/schedules/{schedule_id}/schedule_rotations \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": "<string>",
"type": "schedule_rotations",
"attributes": {
"schedule_id": "<string>",
"name": "<string>",
"position": 123,
"schedule_rotationable_type": "ScheduleDailyRotation",
"active_all_week": true,
"active_days": [
"S"
],
"active_time_type": "<string>",
"active_time_attributes": [
{
"start_time": "<string>",
"end_time": "<string>"
}
],
"time_zone": "Etc/UTC",
"schedule_rotationable_attributes": {
"handoff_time": "<string>"
},
"start_time": "2023-12-25",
"end_time": "2023-12-25"
}
}
],
"links": {
"self": "<string>",
"first": "<string>",
"prev": "<string>",
"next": "<string>",
"last": "<string>"
}
}