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": "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"
}
}
}
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": "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"
}
}
}