Creates a new override shift from provided data
curl --request POST \
--url https://api.rootly.com/v1/schedules/{schedule_id}/override_shifts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "shifts",
"attributes": {
"starts_at": "2023-11-07T05:31:56Z",
"ends_at": "2023-11-07T05:31:56Z",
"user_id": 123
}
}
}'
{
"data": {
"id": "a24b0157-f655-4ad0-ab8a-4b8a893cb13b",
"type": "shifts",
"attributes": {
"schedule_id": "fb9d0d93-e6a5-493f-89da-0ebf88a2179c",
"rotation_id": null,
"starts_at": "2025-08-02T14:39:44.000-07:00",
"ends_at": "2025-08-03T12:39:44.000-07:00",
"is_override": true
},
"relationships": {
"shift_override": {
"data": {
"id": "48144c4e-f568-46e9-9912-e6055e6a7e60",
"type": "shift_overrides"
}
},
"user": {
"data": {
"id": "347",
"type": "users"
}
}
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
override_shift created
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.rootly.com/v1/schedules/{schedule_id}/override_shifts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "shifts",
"attributes": {
"starts_at": "2023-11-07T05:31:56Z",
"ends_at": "2023-11-07T05:31:56Z",
"user_id": 123
}
}
}'
{
"data": {
"id": "a24b0157-f655-4ad0-ab8a-4b8a893cb13b",
"type": "shifts",
"attributes": {
"schedule_id": "fb9d0d93-e6a5-493f-89da-0ebf88a2179c",
"rotation_id": null,
"starts_at": "2025-08-02T14:39:44.000-07:00",
"ends_at": "2025-08-03T12:39:44.000-07:00",
"is_override": true
},
"relationships": {
"shift_override": {
"data": {
"id": "48144c4e-f568-46e9-9912-e6055e6a7e60",
"type": "shift_overrides"
}
},
"user": {
"data": {
"id": "347",
"type": "users"
}
}
}
}
}