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": "970",
"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": "[Stracke and Sons] New Name",
"slack_id": null,
"time_zone": "Etc/UTC",
"updated_at": "2026-01-22T23:13:41.989-08:00",
"created_at": "2026-01-22T23:13:36.918-08:00"
},
"relationships": {
"email_addresses": {
"data": [
{
"id": "c7fa6d8f-8539-45e3-9cdb-05bbe564d7b6",
"type": "user_email_addresses"
}
]
},
"phone_numbers": {
"data": []
},
"devices": {
"data": []
},
"role": {
"data": {
"id": "1258c863-e80d-4f6e-8d3f-3f91f5d643cc",
"type": "roles"
}
},
"on_call_role": {
"data": {
"id": "27e0cfd6-b76b-464d-8c61-2999442b9c51",
"type": "on_call_roles"
}
},
"teams": {
"data": []
},
"schedules": {
"data": []
},
"notification_rules": {
"data": [
{
"id": "c073f8eb-c7b7-44e6-b44e-36c8346d51c2",
"type": "user_notification_rules"
},
{
"id": "f394c3f0-ba73-4050-8748-d0e4cce2fba8",
"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": "970",
"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": "[Stracke and Sons] New Name",
"slack_id": null,
"time_zone": "Etc/UTC",
"updated_at": "2026-01-22T23:13:41.989-08:00",
"created_at": "2026-01-22T23:13:36.918-08:00"
},
"relationships": {
"email_addresses": {
"data": [
{
"id": "c7fa6d8f-8539-45e3-9cdb-05bbe564d7b6",
"type": "user_email_addresses"
}
]
},
"phone_numbers": {
"data": []
},
"devices": {
"data": []
},
"role": {
"data": {
"id": "1258c863-e80d-4f6e-8d3f-3f91f5d643cc",
"type": "roles"
}
},
"on_call_role": {
"data": {
"id": "27e0cfd6-b76b-464d-8c61-2999442b9c51",
"type": "on_call_roles"
}
},
"teams": {
"data": []
},
"schedules": {
"data": []
},
"notification_rules": {
"data": [
{
"id": "c073f8eb-c7b7-44e6-b44e-36c8346d51c2",
"type": "user_notification_rules"
},
{
"id": "f394c3f0-ba73-4050-8748-d0e4cce2fba8",
"type": "user_notification_rules"
}
]
}
}
}
}