PUT
/
v1
/
schedule_rotations
/
{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": {
      "name": "<string>",
      "position": 123,
      "schedule_rotationable_type": "ScheduleDailyRotation",
      "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>"
      }
    }
  }
}'
{
  "data": {
    "id": "5a28a127-6827-4c12-aee7-85f035d95cba",
    "type": "schedule_rotations",
    "attributes": {
      "schedule_id": "607633d3-4bd2-4063-9c6d-3985daa99f46",
      "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",
      "schedule_rotationable_attributes": {
        "handoff_time": "22:30",
        "handoff_day": "T"
      },
      "active_time_attributes": [
        {
          "start_time": "07:30",
          "end_time": "20:30"
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/vnd.api+json
data
object
required

Response

200
application/vnd.api+json
schedule_rotation updated
data
object
required