Update a specific schedule rotation by id
curl --request PUT \
--url https://api.rootly.com/v1/schedule_rotations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"type": "schedule_rotations",
"attributes": {
"schedule_rotationable_type": "ScheduleDailyRotation",
"name": "<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",
"schedule_rotationable_attributes": {
"handoff_time": "<string>"
},
"start_time": "<string>",
"end_time": "<string>",
"schedule_rotation_members": [
{
"member_type": "User",
"member_id": "<string>",
"position": 123
}
]
}
}
}
'{
"data": {
"id": "e74708d8-3f43-4846-8659-792fe063d2f2",
"type": "schedule_rotations",
"attributes": {
"schedule_id": "7d379f2f-c269-4555-8c09-929491ddb71c",
"name": "Updated 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": "22:30",
"handoff_day": "T"
},
"active_time_attributes": [
{
"start_time": "07:30",
"end_time": "20:30"
}
]
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
schedule_rotations Show child attributes
Schedule rotation type
ScheduleDailyRotation, ScheduleWeeklyRotation, ScheduleBiweeklyRotation, ScheduleMonthlyRotation, ScheduleCustomRotation The name of the schedule rotation
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 update schedule rotation members if your account has schedule nesting feature enabled
Show child attributes
schedule_rotation updated
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 PUT \
--url https://api.rootly.com/v1/schedule_rotations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"type": "schedule_rotations",
"attributes": {
"schedule_rotationable_type": "ScheduleDailyRotation",
"name": "<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",
"schedule_rotationable_attributes": {
"handoff_time": "<string>"
},
"start_time": "<string>",
"end_time": "<string>",
"schedule_rotation_members": [
{
"member_type": "User",
"member_id": "<string>",
"position": 123
}
]
}
}
}
'{
"data": {
"id": "e74708d8-3f43-4846-8659-792fe063d2f2",
"type": "schedule_rotations",
"attributes": {
"schedule_id": "7d379f2f-c269-4555-8c09-929491ddb71c",
"name": "Updated 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": "22:30",
"handoff_day": "T"
},
"active_time_attributes": [
{
"start_time": "07:30",
"end_time": "20:30"
}
]
}
}
}