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": "df2afc2f-ae6e-4141-a681-dc3b40136e96",
    "type": "schedule_rotation_users",
    "attributes": {
      "schedule_rotation_id": "f93eab5f-5d96-4d7e-80da-e381d5a61529",
      "user_id": 397,
      "position": 2,
      "created_at": "2025-04-18T18:22:52.397-07:00",
      "updated_at": "2025-04-18T18:22:52.397-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
data
object

Response

201
application/vnd.api+json
schedule_rotation_user created
data
object
required