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": "6de7098c-433d-492d-99a4-d0489df5263c",
"type": "on_call_shadows",
"attributes": {
"schedule_id": "bcdab355-4afa-4dbe-9a56-d43c127f76c1",
"shadowable_type": "User",
"shadowable_id": "359",
"shadow_user_id": 358,
"starts_at": "2025-09-13T13:33:08.465-07:00",
"ends_at": "2025-09-14T13:33:08.465-07:00",
"created_at": "2025-09-11T13:33:08.550-07:00",
"updated_at": "2025-09-11T13:33:08.550-07:00"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
shadow shift is created
The response is of type object
.
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": "6de7098c-433d-492d-99a4-d0489df5263c",
"type": "on_call_shadows",
"attributes": {
"schedule_id": "bcdab355-4afa-4dbe-9a56-d43c127f76c1",
"shadowable_type": "User",
"shadowable_id": "359",
"shadow_user_id": 358,
"starts_at": "2025-09-13T13:33:08.465-07:00",
"ends_at": "2025-09-14T13:33:08.465-07:00",
"created_at": "2025-09-11T13:33:08.550-07:00",
"updated_at": "2025-09-11T13:33:08.550-07:00"
}
}
}