List shifts
curl --request GET \
--url https://api.rootly.com/v1/shifts \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": "c269d265-3684-4dc2-8225-52088dc98a88",
"type": "shifts",
"attributes": {
"schedule_id": "5939c368-1550-44a7-9964-fa4aec952e52",
"rotation_id": "761e75ef-987f-484e-abc7-f9b72d69c35c",
"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": "462",
"type": "users"
}
}
}
},
{
"id": "d6b01677-0f98-40b5-98e5-7cab20670fd7",
"type": "shifts",
"attributes": {
"schedule_id": "5939c368-1550-44a7-9964-fa4aec952e52",
"rotation_id": "5827ae49-ce8e-4081-9fa8-2e08fb628803",
"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": "462",
"type": "users"
}
}
}
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
comma separated if needed. eg: shift_override,user
shift_override
, user
Start range for shifts
End range for shifts
success
The response is of type object
.
Was this page helpful?
curl --request GET \
--url https://api.rootly.com/v1/shifts \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": "c269d265-3684-4dc2-8225-52088dc98a88",
"type": "shifts",
"attributes": {
"schedule_id": "5939c368-1550-44a7-9964-fa4aec952e52",
"rotation_id": "761e75ef-987f-484e-abc7-f9b72d69c35c",
"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": "462",
"type": "users"
}
}
}
},
{
"id": "d6b01677-0f98-40b5-98e5-7cab20670fd7",
"type": "shifts",
"attributes": {
"schedule_id": "5939c368-1550-44a7-9964-fa4aec952e52",
"rotation_id": "5827ae49-ce8e-4081-9fa8-2e08fb628803",
"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": "462",
"type": "users"
}
}
}
}
]
}