List shifts
curl --request GET \
--url https://api.rootly.com/v1/shifts \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "88bcc2a1-25d4-5acf-a43b-1535132072be",
"type": "shifts",
"attributes": {
"schedule_id": "bb860693-900e-4443-98fe-f57e28b18127",
"rotation_id": "28e10959-7a55-482c-98c3-b5dda669e6c3",
"user_id": 577,
"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": "577",
"type": "users"
}
}
}
},
{
"id": "37262bc9-3b26-56f0-9c5c-5e0c9320513e",
"type": "shifts",
"attributes": {
"schedule_id": "bb860693-900e-4443-98fe-f57e28b18127",
"rotation_id": "b7bae5d7-01f2-4789-b8d5-6d0edd79e59a",
"user_id": 577,
"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": "577",
"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
Show child attributes
Unique ID of the shift
shifts Show child attributes
ID of schedule
ID of rotation
Start datetime of shift
End datetime of shift
Denotes shift is an override shift
Override metadata
Show child attributes
Show child attributes
Unique ID of the shift override
shift_override Show child attributes
ID of shift
User who created the override
Date of creation
Date of last update
User metadata
Show child attributes
Show child attributes
Unique ID of the user
users Show child attributes
The email of the user
Date of creation
Date of last update
First name of the user
Last name of the user
The full name of the user
The full name with team of the user
Configured time zone
Show child attributes
Was this page helpful?
curl --request GET \
--url https://api.rootly.com/v1/shifts \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "88bcc2a1-25d4-5acf-a43b-1535132072be",
"type": "shifts",
"attributes": {
"schedule_id": "bb860693-900e-4443-98fe-f57e28b18127",
"rotation_id": "28e10959-7a55-482c-98c3-b5dda669e6c3",
"user_id": 577,
"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": "577",
"type": "users"
}
}
}
},
{
"id": "37262bc9-3b26-56f0-9c5c-5e0c9320513e",
"type": "shifts",
"attributes": {
"schedule_id": "bb860693-900e-4443-98fe-f57e28b18127",
"rotation_id": "b7bae5d7-01f2-4789-b8d5-6d0edd79e59a",
"user_id": 577,
"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": "577",
"type": "users"
}
}
}
}
]
}