Skip to main content
POST
/
v1
/
schedule_rotations
/
{schedule_rotation_id}
/
schedule_rotation_active_days
Creates a schedule rotation active day
curl --request POST \
  --url https://api.rootly.com/v1/schedule_rotations/{schedule_rotation_id}/schedule_rotation_active_days \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "schedule_rotation_active_days",
    "attributes": {
      "day_name": "S",
      "active_time_attributes": [
        {
          "start_time": "<string>",
          "end_time": "<string>"
        }
      ]
    }
  }
}'
{
  "data": {
    "id": "33d0d8c3-baca-4767-8e19-a583aae35dfd",
    "type": "schedule_rotation_active_days",
    "attributes": {
      "schedule_rotation_id": "d044bf85-5dba-4b53-9d53-d9322a1010f5",
      "day_name": "M",
      "created_at": "2025-10-28T10:27:16.843-07:00",
      "updated_at": "2025-10-28T10:27:16.843-07:00",
      "active_time_attributes": [
        {
          "start_time": "07:30",
          "end_time": "16:30"
        },
        {
          "start_time": "17:00",
          "end_time": "20:00"
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

schedule_rotation_id
string
required

Body

application/vnd.api+json
data
object
required

Response

schedule_rotation_active_day created

data
object