Update a specific override shift by id
curl --request PUT \
--url https://api.rootly.com/v1/override_shifts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "shifts",
"attributes": {
"user_id": 123
}
}
}'
{
"data": {
"id": "aa55ce4c-b70d-40da-8b82-a6c19be0f9ba",
"type": "shifts",
"attributes": {
"schedule_id": "5ee54753-f868-4f71-8fc7-b4e09f522aa8",
"rotation_id": "988afc44-91fd-418d-ae26-8144826fc680",
"starts_at": "2025-08-21T17:46:26.000-07:00",
"ends_at": "2025-08-22T01:46:26.000-07:00",
"is_override": true
},
"relationships": {
"shift_override": {
"data": {
"id": "5fafb59c-5e0c-48b4-9bf8-63db81b91b01",
"type": "shift_overrides"
}
},
"user": {
"data": {
"id": "356",
"type": "users"
}
}
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
override shift updated
The response is of type object
.
Was this page helpful?
curl --request PUT \
--url https://api.rootly.com/v1/override_shifts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "shifts",
"attributes": {
"user_id": 123
}
}
}'
{
"data": {
"id": "aa55ce4c-b70d-40da-8b82-a6c19be0f9ba",
"type": "shifts",
"attributes": {
"schedule_id": "5ee54753-f868-4f71-8fc7-b4e09f522aa8",
"rotation_id": "988afc44-91fd-418d-ae26-8144826fc680",
"starts_at": "2025-08-21T17:46:26.000-07:00",
"ends_at": "2025-08-22T01:46:26.000-07:00",
"is_override": true
},
"relationships": {
"shift_override": {
"data": {
"id": "5fafb59c-5e0c-48b4-9bf8-63db81b91b01",
"type": "shift_overrides"
}
},
"user": {
"data": {
"id": "356",
"type": "users"
}
}
}
}
}