List shifts
curl --request GET \
--url https://api.rootly.com/v1/shifts \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "345cbd40-bd0a-48d8-8c8a-094d5d385873",
"type": "shifts",
"attributes": {
"schedule_id": "7940f732-36cc-48bb-aba8-4fb7e5a2b8dd",
"rotation_id": "fe261090-91de-4b8a-8c60-17181f4c4537",
"user_id": 580,
"starts_at": "2024-07-02T21:00:00.000-07:00",
"ends_at": "2024-07-02T23:00:00.000-07:00",
"is_override": true
},
"relationships": {
"shift_override": {
"data": null
},
"user": {
"data": {
"id": "580",
"type": "users"
}
}
}
},
{
"id": "4c11fa7d-da58-506b-b2ca-39c5522dbe4a",
"type": "shifts",
"attributes": {
"schedule_id": "7940f732-36cc-48bb-aba8-4fb7e5a2b8dd",
"rotation_id": "9a15cd3a-ef07-41cf-90fc-5d2aa55f2fb3",
"user_id": 580,
"starts_at": "2024-07-02T19:00:00.000-07:00",
"ends_at": "2024-07-02T21:00:00.000-07:00",
"is_override": false
},
"relationships": {
"shift_override": {
"data": null
},
"user": {
"data": {
"id": "580",
"type": "users"
}
}
}
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
comma separated if needed. eg: shift_override,user. Note: user is deprecated, use assignee instead.
shift_override, user, assignee Start range for shifts
End range for shifts
success
Show child attributes
Was this page helpful?
curl --request GET \
--url https://api.rootly.com/v1/shifts \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "345cbd40-bd0a-48d8-8c8a-094d5d385873",
"type": "shifts",
"attributes": {
"schedule_id": "7940f732-36cc-48bb-aba8-4fb7e5a2b8dd",
"rotation_id": "fe261090-91de-4b8a-8c60-17181f4c4537",
"user_id": 580,
"starts_at": "2024-07-02T21:00:00.000-07:00",
"ends_at": "2024-07-02T23:00:00.000-07:00",
"is_override": true
},
"relationships": {
"shift_override": {
"data": null
},
"user": {
"data": {
"id": "580",
"type": "users"
}
}
}
},
{
"id": "4c11fa7d-da58-506b-b2ca-39c5522dbe4a",
"type": "shifts",
"attributes": {
"schedule_id": "7940f732-36cc-48bb-aba8-4fb7e5a2b8dd",
"rotation_id": "9a15cd3a-ef07-41cf-90fc-5d2aa55f2fb3",
"user_id": 580,
"starts_at": "2024-07-02T19:00:00.000-07:00",
"ends_at": "2024-07-02T21:00:00.000-07:00",
"is_override": false
},
"relationships": {
"shift_override": {
"data": null
},
"user": {
"data": {
"id": "580",
"type": "users"
}
}
}
}
]
}