List shifts
curl --request GET \
--url https://api.rootly.com/v1/shifts \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "1b05a24b-9f17-488f-9119-3e9c36fa87c7",
"type": "shifts",
"attributes": {
"schedule_id": "dfff02ed-2371-4049-bb72-9870633cf1d3",
"rotation_id": "4f9dbf8c-eca3-4647-b499-cd09aaf135ce",
"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": "272b69b6-90f2-57f0-b617-67da0c46fa42",
"type": "shifts",
"attributes": {
"schedule_id": "dfff02ed-2371-4049-bb72-9870633cf1d3",
"rotation_id": "2697d798-3eaa-4839-81b7-ab15b5c8d1dc",
"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": "1b05a24b-9f17-488f-9119-3e9c36fa87c7",
"type": "shifts",
"attributes": {
"schedule_id": "dfff02ed-2371-4049-bb72-9870633cf1d3",
"rotation_id": "4f9dbf8c-eca3-4647-b499-cd09aaf135ce",
"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": "272b69b6-90f2-57f0-b617-67da0c46fa42",
"type": "shifts",
"attributes": {
"schedule_id": "dfff02ed-2371-4049-bb72-9870633cf1d3",
"rotation_id": "2697d798-3eaa-4839-81b7-ab15b5c8d1dc",
"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"
}
}
}
}
]
}