Creates a new on call shadow configuration from provided data
curl --request POST \
--url https://api.rootly.com/v1/schedules/{schedule_id}/on_call_shadows \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"type": "on_call_shadows",
"attributes": {
"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": "b515423f-06ce-43fa-a47d-b6071b348504",
"type": "on_call_shadows",
"attributes": {
"schedule_id": "379aa097-f27b-44c0-b3d2-83f54dd2b745",
"shadowable_type": "User",
"shadowable_id": "440",
"shadow_user_id": 439,
"starts_at": "2025-12-15T18:51:26.460-08:00",
"ends_at": "2025-12-16T18:51:26.460-08:00",
"created_at": "2025-12-13T18:51:26.513-08:00",
"updated_at": "2025-12-13T18:51:26.513-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
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
shadow shift is created
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 POST \
--url https://api.rootly.com/v1/schedules/{schedule_id}/on_call_shadows \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"type": "on_call_shadows",
"attributes": {
"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": "b515423f-06ce-43fa-a47d-b6071b348504",
"type": "on_call_shadows",
"attributes": {
"schedule_id": "379aa097-f27b-44c0-b3d2-83f54dd2b745",
"shadowable_type": "User",
"shadowable_id": "440",
"shadow_user_id": 439,
"starts_at": "2025-12-15T18:51:26.460-08:00",
"ends_at": "2025-12-16T18:51:26.460-08:00",
"created_at": "2025-12-13T18:51:26.513-08:00",
"updated_at": "2025-12-13T18:51:26.513-08:00"
}
}
}