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": "500",
"type": "users",
"attributes": {
"name": "New Name",
"email": "charlie@lebsack.test",
"phone": null,
"phone_2": null,
"first_name": "New",
"last_name": "Name",
"full_name": "New Name",
"full_name_with_team": "[Gutmann LLC] New Name",
"slack_id": null,
"time_zone": "UTC",
"updated_at": "2025-08-01T15:02:09.982-07:00",
"created_at": "2025-08-01T15:02:02.998-07:00"
},
"relationships": {
"email_addresses": {
"data": [
{
"id": "e3231a6a-e4f6-4943-b6b5-7a1efb65b361",
"type": "user_email_addresses"
}
]
},
"phone_numbers": {
"data": []
},
"devices": {
"data": []
},
"role": {
"data": {
"id": "12c39865-95f2-41fe-8d0d-2d9999b105e4",
"type": "roles"
}
},
"on_call_role": {
"data": {
"id": "a173acd4-b768-43aa-aa38-c1ae04ad7bdb",
"type": "on_call_roles"
}
}
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
update name and role simultaneously
The response is of type object
.
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": "500",
"type": "users",
"attributes": {
"name": "New Name",
"email": "charlie@lebsack.test",
"phone": null,
"phone_2": null,
"first_name": "New",
"last_name": "Name",
"full_name": "New Name",
"full_name_with_team": "[Gutmann LLC] New Name",
"slack_id": null,
"time_zone": "UTC",
"updated_at": "2025-08-01T15:02:09.982-07:00",
"created_at": "2025-08-01T15:02:02.998-07:00"
},
"relationships": {
"email_addresses": {
"data": [
{
"id": "e3231a6a-e4f6-4943-b6b5-7a1efb65b361",
"type": "user_email_addresses"
}
]
},
"phone_numbers": {
"data": []
},
"devices": {
"data": []
},
"role": {
"data": {
"id": "12c39865-95f2-41fe-8d0d-2d9999b105e4",
"type": "roles"
}
},
"on_call_role": {
"data": {
"id": "a173acd4-b768-43aa-aa38-c1ae04ad7bdb",
"type": "on_call_roles"
}
}
}
}
}