List shifts
curl --request GET \
--url https://api.rootly.com/v1/shifts \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "a08f395a-b2bf-4eeb-af1b-687f9f1e26e8",
"type": "shifts",
"attributes": {
"schedule_id": "c1f4185b-ebf4-43ec-b7ae-ec4759a10441",
"rotation_id": "483ce76a-c605-4b5d-81fe-ba4c6e9d4b0a",
"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": "a1304bf2-0961-55ed-ab5a-548107ddb704",
"type": "shifts",
"attributes": {
"schedule_id": "c1f4185b-ebf4-43ec-b7ae-ec4759a10441",
"rotation_id": "653d6de0-5e43-486d-bb14-afc843affa4f",
"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": "a08f395a-b2bf-4eeb-af1b-687f9f1e26e8",
"type": "shifts",
"attributes": {
"schedule_id": "c1f4185b-ebf4-43ec-b7ae-ec4759a10441",
"rotation_id": "483ce76a-c605-4b5d-81fe-ba4c6e9d4b0a",
"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": "a1304bf2-0961-55ed-ab5a-548107ddb704",
"type": "shifts",
"attributes": {
"schedule_id": "c1f4185b-ebf4-43ec-b7ae-ec4759a10441",
"rotation_id": "653d6de0-5e43-486d-bb14-afc843affa4f",
"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"
}
}
}
}
]
}