Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/vnd.api+json
Response
update name and role simultaneously
Update a specific user by id
curl --request PUT \
--url https://api.rootly.com/v1/users/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "users",
"attributes": {
"first_name": "<string>",
"last_name": "<string>",
"role_id": "<string>",
"on_call_role_id": "<string>"
}
}
}'
{
"data": {
"id": "544",
"type": "users",
"attributes": {
"name": "New Name",
"email": "jeffrey.mcclure@leannon.example",
"phone": null,
"phone_2": null,
"first_name": "New",
"last_name": "Name",
"full_name": "New Name",
"full_name_with_team": "[Kuvalis-Terry] New Name",
"slack_id": null,
"time_zone": "Etc/UTC",
"updated_at": "2025-10-08T04:40:32.003-07:00",
"created_at": "2025-10-08T04:40:27.345-07:00"
},
"relationships": {
"email_addresses": {
"data": [
{
"id": "cc9feb0e-c97e-40cc-87a4-b208afe11563",
"type": "user_email_addresses"
}
]
},
"phone_numbers": {
"data": []
},
"devices": {
"data": []
},
"role": {
"data": {
"id": "6413ec7e-e173-4791-8785-42ea5a69cc8b",
"type": "roles"
}
},
"on_call_role": {
"data": {
"id": "0cb53b79-784b-4834-880c-2548418cc29a",
"type": "on_call_roles"
}
}
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Show child attributes
update name and role simultaneously
Show child attributes
Was this page helpful?
curl --request PUT \
--url https://api.rootly.com/v1/users/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "users",
"attributes": {
"first_name": "<string>",
"last_name": "<string>",
"role_id": "<string>",
"on_call_role_id": "<string>"
}
}
}'
{
"data": {
"id": "544",
"type": "users",
"attributes": {
"name": "New Name",
"email": "jeffrey.mcclure@leannon.example",
"phone": null,
"phone_2": null,
"first_name": "New",
"last_name": "Name",
"full_name": "New Name",
"full_name_with_team": "[Kuvalis-Terry] New Name",
"slack_id": null,
"time_zone": "Etc/UTC",
"updated_at": "2025-10-08T04:40:32.003-07:00",
"created_at": "2025-10-08T04:40:27.345-07:00"
},
"relationships": {
"email_addresses": {
"data": [
{
"id": "cc9feb0e-c97e-40cc-87a4-b208afe11563",
"type": "user_email_addresses"
}
]
},
"phone_numbers": {
"data": []
},
"devices": {
"data": []
},
"role": {
"data": {
"id": "6413ec7e-e173-4791-8785-42ea5a69cc8b",
"type": "roles"
}
},
"on_call_role": {
"data": {
"id": "0cb53b79-784b-4834-880c-2548418cc29a",
"type": "on_call_roles"
}
}
}
}
}