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": "622",
"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": "[Schulist, Johns and Kemmer] New Name",
"slack_id": null,
"time_zone": "Etc/UTC",
"updated_at": "2025-12-19T18:19:04.871-08:00",
"created_at": "2025-12-19T18:19:01.530-08:00"
},
"relationships": {
"email_addresses": {
"data": [
{
"id": "74412d3a-9fb0-425b-adc5-404dd2c8cf58",
"type": "user_email_addresses"
}
]
},
"phone_numbers": {
"data": []
},
"devices": {
"data": []
},
"role": {
"data": {
"id": "655c4cdc-c41d-43fd-92b2-217432d13cdd",
"type": "roles"
}
},
"on_call_role": {
"data": {
"id": "5df6dde5-3844-41db-bbd7-dd5c397a7376",
"type": "on_call_roles"
}
},
"teams": {
"data": []
},
"schedules": {
"data": []
},
"notification_rules": {
"data": [
{
"id": "4af626d9-f710-4a2b-a663-ab4f8a18adc4",
"type": "user_notification_rules"
},
{
"id": "e0fcc977-cdbc-4c75-bed7-48a72adc5c3b",
"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": "622",
"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": "[Schulist, Johns and Kemmer] New Name",
"slack_id": null,
"time_zone": "Etc/UTC",
"updated_at": "2025-12-19T18:19:04.871-08:00",
"created_at": "2025-12-19T18:19:01.530-08:00"
},
"relationships": {
"email_addresses": {
"data": [
{
"id": "74412d3a-9fb0-425b-adc5-404dd2c8cf58",
"type": "user_email_addresses"
}
]
},
"phone_numbers": {
"data": []
},
"devices": {
"data": []
},
"role": {
"data": {
"id": "655c4cdc-c41d-43fd-92b2-217432d13cdd",
"type": "roles"
}
},
"on_call_role": {
"data": {
"id": "5df6dde5-3844-41db-bbd7-dd5c397a7376",
"type": "on_call_roles"
}
},
"teams": {
"data": []
},
"schedules": {
"data": []
},
"notification_rules": {
"data": [
{
"id": "4af626d9-f710-4a2b-a663-ab4f8a18adc4",
"type": "user_notification_rules"
},
{
"id": "e0fcc977-cdbc-4c75-bed7-48a72adc5c3b",
"type": "user_notification_rules"
}
]
}
}
}
}