Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/vnd.api+json
Response
shadow shift is created
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": "53513125-2d03-42bd-8478-7d6325ff5d45",
"type": "on_call_shadows",
"attributes": {
"schedule_id": "8f52e403-d78f-4cb4-bfa5-ec553daf1a23",
"shadowable_type": "User",
"shadowable_id": "359",
"shadow_user_id": 358,
"starts_at": "2025-10-06T16:10:02.605-07:00",
"ends_at": "2025-10-07T16:10:02.605-07:00",
"created_at": "2025-10-04T16:10:02.668-07:00",
"updated_at": "2025-10-04T16:10:02.668-07:00"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Show child attributes
shadow shift is created
Show child attributes
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": "53513125-2d03-42bd-8478-7d6325ff5d45",
"type": "on_call_shadows",
"attributes": {
"schedule_id": "8f52e403-d78f-4cb4-bfa5-ec553daf1a23",
"shadowable_type": "User",
"shadowable_id": "359",
"shadow_user_id": 358,
"starts_at": "2025-10-06T16:10:02.605-07:00",
"ends_at": "2025-10-07T16:10:02.605-07:00",
"created_at": "2025-10-04T16:10:02.668-07:00",
"updated_at": "2025-10-04T16:10:02.668-07:00"
}
}
}