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": "dbd8fcbc-43d6-41c5-ba44-242a62b91ace",
"type": "on_call_shadows",
"attributes": {
"schedule_id": "c39a4035-1fa4-4a8e-81d6-ddeb32ec7c53",
"shadowable_type": "Schedule",
"shadowable_id": "c39a4035-1fa4-4a8e-81d6-ddeb32ec7c53",
"shadow_user_id": 393,
"starts_at": "2025-11-26T22:56:12.000-08:00",
"ends_at": "2025-11-27T20:56:12.000-08:00",
"created_at": "2025-11-26T20:56:12.558-08:00",
"updated_at": "2025-11-26T20:56:13.235-08:00"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
on_call_shadows Show child attributes
ID of schedule the shadow shift belongs to
User, Schedule ID of schedule or user the shadow user is shadowing
Which user the shadow shift belongs to.
Start datetime of shadow shift
End datetime for shadow shift
on call shadows configuration is is updated
Show child attributes
Unique ID of shadow shift
on_call_shadows Show child attributes
ID of schedule the shadow shift belongs to
User, Schedule ID of schedule or user the shadow user is shadowing
Which user the shadow shift belongs to.
Start datetime of shadow shift
End datetime for shadow shift
Date of creation
Date of last update
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": "dbd8fcbc-43d6-41c5-ba44-242a62b91ace",
"type": "on_call_shadows",
"attributes": {
"schedule_id": "c39a4035-1fa4-4a8e-81d6-ddeb32ec7c53",
"shadowable_type": "Schedule",
"shadowable_id": "c39a4035-1fa4-4a8e-81d6-ddeb32ec7c53",
"shadow_user_id": 393,
"starts_at": "2025-11-26T22:56:12.000-08:00",
"ends_at": "2025-11-27T20:56:12.000-08:00",
"created_at": "2025-11-26T20:56:12.558-08:00",
"updated_at": "2025-11-26T20:56:13.235-08:00"
}
}
}