POST
/
v1
/
schedule_rotations
/
{schedule_rotation_id}
/
schedule_rotation_users
curl --request POST \
  --url https://api.rootly.com/v1/schedule_rotations/{schedule_rotation_id}/schedule_rotation_users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "schedule_rotation_users",
    "attributes": {
      "user_id": 123,
      "position": 123
    }
  }
}'
{
  "data": {
    "id": "c74d95f3-c47b-49e0-af40-b2dd3fe15e44",
    "type": "schedule_rotation_users",
    "attributes": {
      "schedule_rotation_id": "8e1c64da-581d-4570-9205-dfad0ff77222",
      "user_id": 397,
      "position": 2,
      "created_at": "2025-05-08T00:24:21.827-07:00",
      "updated_at": "2025-05-08T00:24:21.827-07: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

Response

201
application/vnd.api+json
schedule_rotation_user created

The response is of type object.