List shifts
curl --request GET \
--url https://api.rootly.com/v1/shifts \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": "21c40f49-55a5-4379-b039-01e97ad5d9f3",
"type": "shifts",
"attributes": {
"schedule_id": "841927f5-b7b9-491b-97ec-d948d48bb225",
"rotation_id": "bad2ed62-4238-4027-abab-0b9b668ce50f",
"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": "478",
"type": "users"
}
}
}
},
{
"id": "9684fe5f-db0e-4c03-ba9c-4738729aaa7f",
"type": "shifts",
"attributes": {
"schedule_id": "841927f5-b7b9-491b-97ec-d948d48bb225",
"rotation_id": "140f5cae-fd59-4b2a-970b-8e7bd116b28e",
"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": "478",
"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": "21c40f49-55a5-4379-b039-01e97ad5d9f3",
"type": "shifts",
"attributes": {
"schedule_id": "841927f5-b7b9-491b-97ec-d948d48bb225",
"rotation_id": "bad2ed62-4238-4027-abab-0b9b668ce50f",
"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": "478",
"type": "users"
}
}
}
},
{
"id": "9684fe5f-db0e-4c03-ba9c-4738729aaa7f",
"type": "shifts",
"attributes": {
"schedule_id": "841927f5-b7b9-491b-97ec-d948d48bb225",
"rotation_id": "140f5cae-fd59-4b2a-970b-8e7bd116b28e",
"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": "478",
"type": "users"
}
}
}
}
]
}