Creates a new schedule rotation from provided data
curl --request POST \
--url https://api.rootly.com/v1/schedules/{schedule_id}/schedule_rotations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "schedule_rotations",
"attributes": {
"name": "<string>",
"schedule_rotationable_type": "ScheduleDailyRotation",
"schedule_rotationable_attributes": {
"handoff_time": "<string>"
},
"position": 123,
"active_all_week": true,
"active_days": [
"S"
],
"active_time_type": "<string>",
"active_time_attributes": [
{
"start_time": "<string>",
"end_time": "<string>"
}
],
"time_zone": "Etc/UTC",
"start_time": "2023-12-25",
"end_time": "2023-12-25",
"schedule_rotation_members": [
{
"member_type": "User",
"member_id": "<string>",
"position": 123
}
]
}
}
}'{
"data": {
"id": "1f67f06d-877a-4d78-a5c0-06ab5767eb0b",
"type": "schedule_rotations",
"attributes": {
"schedule_id": "6a4f0d94-dcdb-475b-b77d-c545402a7dce",
"name": "Schedule Rotation Name",
"position": 1,
"schedule_rotationable_type": "ScheduleWeeklyRotation",
"active_all_week": false,
"active_days": [
"M",
"T"
],
"active_time_type": "same_time",
"time_zone": "American Samoa",
"start_time": null,
"end_time": null,
"schedule_rotationable_attributes": {
"handoff_time": "21:30",
"handoff_day": "T"
},
"active_time_attributes": [
{
"start_time": "07:30",
"end_time": "16:30"
},
{
"start_time": "17:00",
"end_time": "21:00"
}
]
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
schedule_rotations Show child attributes
The name of the schedule rotation
Schedule rotation type
ScheduleDailyRotation, ScheduleWeeklyRotation, ScheduleBiweeklyRotation, ScheduleMonthlyRotation, ScheduleCustomRotation Position of the schedule rotation
Schedule rotation active all week?
Schedule rotation active days
S, M, T, W, R, F, U A valid IANA time zone name.
ISO8601 date and time when rotation starts. Shifts will only be created after this time.
ISO8601 date and time when rotation ends. Shifts will only be created before this time.
You can only add schedule rotation members if your account has schedule nesting feature enabled
Show child attributes
schedule_rotation created with custom active times
Show child attributes
Unique ID of the schedule rotation
schedule_rotations Show child attributes
The ID of parent schedule
The name of the schedule rotation
Schedule rotation type
ScheduleDailyRotation, ScheduleWeeklyRotation, ScheduleBiweeklyRotation, ScheduleMonthlyRotation, ScheduleCustomRotation Position of the schedule rotation
Schedule rotation active all week?
Schedule rotation active days
S, M, T, W, R, F, U A valid IANA time zone name.
ISO8601 date and time when rotation starts. Shifts will only be created after this time.
ISO8601 date and time when rotation ends. Shifts will only be created before this time.
Was this page helpful?
curl --request POST \
--url https://api.rootly.com/v1/schedules/{schedule_id}/schedule_rotations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "schedule_rotations",
"attributes": {
"name": "<string>",
"schedule_rotationable_type": "ScheduleDailyRotation",
"schedule_rotationable_attributes": {
"handoff_time": "<string>"
},
"position": 123,
"active_all_week": true,
"active_days": [
"S"
],
"active_time_type": "<string>",
"active_time_attributes": [
{
"start_time": "<string>",
"end_time": "<string>"
}
],
"time_zone": "Etc/UTC",
"start_time": "2023-12-25",
"end_time": "2023-12-25",
"schedule_rotation_members": [
{
"member_type": "User",
"member_id": "<string>",
"position": 123
}
]
}
}
}'{
"data": {
"id": "1f67f06d-877a-4d78-a5c0-06ab5767eb0b",
"type": "schedule_rotations",
"attributes": {
"schedule_id": "6a4f0d94-dcdb-475b-b77d-c545402a7dce",
"name": "Schedule Rotation Name",
"position": 1,
"schedule_rotationable_type": "ScheduleWeeklyRotation",
"active_all_week": false,
"active_days": [
"M",
"T"
],
"active_time_type": "same_time",
"time_zone": "American Samoa",
"start_time": null,
"end_time": null,
"schedule_rotationable_attributes": {
"handoff_time": "21:30",
"handoff_day": "T"
},
"active_time_attributes": [
{
"start_time": "07:30",
"end_time": "16:30"
},
{
"start_time": "17:00",
"end_time": "21:00"
}
]
}
}
}