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": "1158",
"type": "users",
"attributes": {
"name": "New Name",
"email": "virgina_bailey@spinka.test",
"phone": null,
"phone_2": null,
"first_name": "New",
"last_name": "Name",
"full_name": "New Name",
"full_name_with_team": "[Nicolas-Haley] New Name",
"slack_id": null,
"time_zone": "Etc/UTC",
"updated_at": "2026-02-21T14:35:35.479-08:00",
"created_at": "2026-02-21T14:35:32.208-08:00"
},
"relationships": {
"email_addresses": {
"data": [
{
"id": "21bc66c5-cace-4be1-a1ef-1deb90fe60fa",
"type": "user_email_addresses"
}
]
},
"phone_numbers": {
"data": []
},
"devices": {
"data": []
},
"role": {
"data": {
"id": "e0c8f3f6-f3b4-45ef-a252-82e6326fb0f3",
"type": "roles"
}
},
"on_call_role": {
"data": {
"id": "1678ff06-362d-4373-97a7-456971f9e1e1",
"type": "on_call_roles"
}
},
"teams": {
"data": []
},
"schedules": {
"data": []
},
"notification_rules": {
"data": [
{
"id": "e0a3ffe7-a9b0-4428-b485-3029891baefa",
"type": "user_notification_rules"
},
{
"id": "543eefa9-9e85-4269-9379-b5f4f3eb2f3e",
"type": "user_notification_rules"
}
]
}
}
}
}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": "1158",
"type": "users",
"attributes": {
"name": "New Name",
"email": "virgina_bailey@spinka.test",
"phone": null,
"phone_2": null,
"first_name": "New",
"last_name": "Name",
"full_name": "New Name",
"full_name_with_team": "[Nicolas-Haley] New Name",
"slack_id": null,
"time_zone": "Etc/UTC",
"updated_at": "2026-02-21T14:35:35.479-08:00",
"created_at": "2026-02-21T14:35:32.208-08:00"
},
"relationships": {
"email_addresses": {
"data": [
{
"id": "21bc66c5-cace-4be1-a1ef-1deb90fe60fa",
"type": "user_email_addresses"
}
]
},
"phone_numbers": {
"data": []
},
"devices": {
"data": []
},
"role": {
"data": {
"id": "e0c8f3f6-f3b4-45ef-a252-82e6326fb0f3",
"type": "roles"
}
},
"on_call_role": {
"data": {
"id": "1678ff06-362d-4373-97a7-456971f9e1e1",
"type": "on_call_roles"
}
},
"teams": {
"data": []
},
"schedules": {
"data": []
},
"notification_rules": {
"data": [
{
"id": "e0a3ffe7-a9b0-4428-b485-3029891baefa",
"type": "user_notification_rules"
},
{
"id": "543eefa9-9e85-4269-9379-b5f4f3eb2f3e",
"type": "user_notification_rules"
}
]
}
}
}
}