Retrieves schedule shifts
curl --request GET \
--url https://api.rootly.com/v1/schedules/{id}/shifts \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "<string>",
"type": "shifts",
"attributes": {
"schedule_id": "<string>",
"rotation_id": "<string>",
"starts_at": "<string>",
"ends_at": "<string>",
"is_override": true,
"user_id": 123
},
"relationships": {
"shift_override": {
"data": {
"id": "<string>",
"type": "shift_overrides"
}
},
"user": {
"data": {
"id": "<string>",
"type": "users"
}
},
"assignee": {
"data": {
"id": "<string>",
"type": "<string>"
}
}
}
}
]
}Was this page helpful?
curl --request GET \
--url https://api.rootly.com/v1/schedules/{id}/shifts \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "<string>",
"type": "shifts",
"attributes": {
"schedule_id": "<string>",
"rotation_id": "<string>",
"starts_at": "<string>",
"ends_at": "<string>",
"is_override": true,
"user_id": 123
},
"relationships": {
"shift_override": {
"data": {
"id": "<string>",
"type": "shift_overrides"
}
},
"user": {
"data": {
"id": "<string>",
"type": "users"
}
},
"assignee": {
"data": {
"id": "<string>",
"type": "<string>"
}
}
}
}
]
}