Update a specific on call shadow configuration by id
curl --request PUT \
--url https://api.rootly.com/v1/on_call_shadows/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "on_call_shadows",
"attributes": {
"schedule_id": "<string>",
"shadowable_type": "User",
"shadowable_id": "<string>",
"shadow_user_id": 123,
"starts_at": "2023-11-07T05:31:56Z",
"ends_at": "2023-11-07T05:31:56Z"
}
}
}'
{
"data": {
"id": "976a6305-5828-4c0f-9bf4-e334fa7afb98",
"type": "on_call_shadows",
"attributes": {
"schedule_id": "001327b4-f5c1-4fed-9eff-c2bae8c6c7aa",
"shadowable_type": "Schedule",
"shadowable_id": "001327b4-f5c1-4fed-9eff-c2bae8c6c7aa",
"shadow_user_id": 342,
"starts_at": "2025-07-25T18:57:32.000-07:00",
"ends_at": "2025-07-26T16:57:32.000-07:00",
"created_at": "2025-07-25T16:57:32.360-07:00",
"updated_at": "2025-07-25T16:57:33.540-07:00"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
on call shadows configuration is is updated
The response is of type object
.
curl --request PUT \
--url https://api.rootly.com/v1/on_call_shadows/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "on_call_shadows",
"attributes": {
"schedule_id": "<string>",
"shadowable_type": "User",
"shadowable_id": "<string>",
"shadow_user_id": 123,
"starts_at": "2023-11-07T05:31:56Z",
"ends_at": "2023-11-07T05:31:56Z"
}
}
}'
{
"data": {
"id": "976a6305-5828-4c0f-9bf4-e334fa7afb98",
"type": "on_call_shadows",
"attributes": {
"schedule_id": "001327b4-f5c1-4fed-9eff-c2bae8c6c7aa",
"shadowable_type": "Schedule",
"shadowable_id": "001327b4-f5c1-4fed-9eff-c2bae8c6c7aa",
"shadow_user_id": 342,
"starts_at": "2025-07-25T18:57:32.000-07:00",
"ends_at": "2025-07-26T16:57:32.000-07:00",
"created_at": "2025-07-25T16:57:32.360-07:00",
"updated_at": "2025-07-25T16:57:33.540-07:00"
}
}
}