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": "b05e0af8-cb1d-4d75-b824-ffabde54fcd2",
"type": "on_call_shadows",
"attributes": {
"schedule_id": "43686914-b9d8-43f5-9480-b3e009e6ea59",
"shadowable_type": "Schedule",
"shadowable_id": "43686914-b9d8-43f5-9480-b3e009e6ea59",
"shadow_user_id": 744,
"starts_at": "2026-01-16T08:20:39.000-08:00",
"ends_at": "2026-01-17T06:20:39.000-08:00",
"created_at": "2026-01-16T06:20:39.491-08:00",
"updated_at": "2026-01-16T06:20:40.033-08:00"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
on call shadows configuration is is updated
Show child attributes
Was this page helpful?
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": "b05e0af8-cb1d-4d75-b824-ffabde54fcd2",
"type": "on_call_shadows",
"attributes": {
"schedule_id": "43686914-b9d8-43f5-9480-b3e009e6ea59",
"shadowable_type": "Schedule",
"shadowable_id": "43686914-b9d8-43f5-9480-b3e009e6ea59",
"shadow_user_id": 744,
"starts_at": "2026-01-16T08:20:39.000-08:00",
"ends_at": "2026-01-17T06:20:39.000-08:00",
"created_at": "2026-01-16T06:20:39.491-08:00",
"updated_at": "2026-01-16T06:20:40.033-08:00"
}
}
}