POST
/
v1
/
schedule_rotations
/
{schedule_rotation_id}
/
schedule_rotation_users
Creates a schedule rotation user
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": "8d37fddd-b7d1-4c68-89f2-1fd5754b52c8",
    "type": "schedule_rotation_users",
    "attributes": {
      "schedule_rotation_id": "1f188366-a3e0-443a-8ce3-f5526ac87b8d",
      "user_id": 409,
      "position": 2,
      "created_at": "2025-07-20T00:42:58.637-07:00",
      "updated_at": "2025-07-20T00:42:58.637-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.