Creates a new schedule rotation user from provided data
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": "7cbe8aea-8bef-4b03-8af9-861b97dd226e",
"type": "schedule_rotation_users",
"attributes": {
"schedule_rotation_id": "9c1e5c40-0b34-4c8d-9be2-24066ed6d6c2",
"user_id": 425,
"position": 2,
"created_at": "2025-09-01T03:42:54.403-07:00",
"updated_at": "2025-09-01T03:42:54.403-07:00"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
schedule_rotation_user created
The response is of type object
.
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": "7cbe8aea-8bef-4b03-8af9-861b97dd226e",
"type": "schedule_rotation_users",
"attributes": {
"schedule_rotation_id": "9c1e5c40-0b34-4c8d-9be2-24066ed6d6c2",
"user_id": 425,
"position": 2,
"created_at": "2025-09-01T03:42:54.403-07:00",
"updated_at": "2025-09-01T03:42:54.403-07:00"
}
}
}