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": "ff672c1b-db24-46f1-954b-76323f608b0d",
    "type": "schedule_rotation_users",
    "attributes": {
      "schedule_rotation_id": "a26f45ba-d266-4a80-8b6b-efe7bc034db6",
      "user_id": 406,
      "position": 2,
      "created_at": "2025-06-19T02:43:34.353-07:00",
      "updated_at": "2025-06-19T02:43:34.353-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.