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": "949",
"type": "users",
"attributes": {
"name": "New Name",
"email": "[email protected]",
"phone": null,
"phone_2": null,
"first_name": "New",
"last_name": "Name",
"full_name": "New Name",
"full_name_with_team": "[Little Inc] New Name",
"slack_id": null,
"time_zone": "Etc/UTC",
"updated_at": "2026-01-08T21:11:16.022-08:00",
"created_at": "2026-01-08T21:11:12.410-08:00"
},
"relationships": {
"email_addresses": {
"data": [
{
"id": "9e1c8a57-ec90-41b0-bd3e-e6dcfe5b6d93",
"type": "user_email_addresses"
}
]
},
"phone_numbers": {
"data": []
},
"devices": {
"data": []
},
"role": {
"data": {
"id": "6dd98ad1-d789-47b6-bd95-634553a9786b",
"type": "roles"
}
},
"on_call_role": {
"data": {
"id": "04b06176-d7ac-4388-9398-2074b168d346",
"type": "on_call_roles"
}
},
"teams": {
"data": []
},
"schedules": {
"data": []
},
"notification_rules": {
"data": [
{
"id": "d6c7c83d-563d-4710-a7c3-74089ccd2ac7",
"type": "user_notification_rules"
},
{
"id": "24ea9be1-0e9c-4257-be33-6eec2e7bf089",
"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": "949",
"type": "users",
"attributes": {
"name": "New Name",
"email": "[email protected]",
"phone": null,
"phone_2": null,
"first_name": "New",
"last_name": "Name",
"full_name": "New Name",
"full_name_with_team": "[Little Inc] New Name",
"slack_id": null,
"time_zone": "Etc/UTC",
"updated_at": "2026-01-08T21:11:16.022-08:00",
"created_at": "2026-01-08T21:11:12.410-08:00"
},
"relationships": {
"email_addresses": {
"data": [
{
"id": "9e1c8a57-ec90-41b0-bd3e-e6dcfe5b6d93",
"type": "user_email_addresses"
}
]
},
"phone_numbers": {
"data": []
},
"devices": {
"data": []
},
"role": {
"data": {
"id": "6dd98ad1-d789-47b6-bd95-634553a9786b",
"type": "roles"
}
},
"on_call_role": {
"data": {
"id": "04b06176-d7ac-4388-9398-2074b168d346",
"type": "on_call_roles"
}
},
"teams": {
"data": []
},
"schedules": {
"data": []
},
"notification_rules": {
"data": [
{
"id": "d6c7c83d-563d-4710-a7c3-74089ccd2ac7",
"type": "user_notification_rules"
},
{
"id": "24ea9be1-0e9c-4257-be33-6eec2e7bf089",
"type": "user_notification_rules"
}
]
}
}
}
}