PUT
/
v1
/
users
/
{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": "489",
    "type": "users",
    "attributes": {
      "name": "New Name",
      "email": "olive_schowalter@jaskolski.test",
      "phone": null,
      "phone_2": null,
      "first_name": "New",
      "last_name": "Name",
      "full_name": "New Name",
      "full_name_with_team": "[Leuschke-Becker] New Name",
      "slack_id": null,
      "time_zone": "UTC",
      "updated_at": "2025-06-11T15:19:05.876-07:00",
      "created_at": "2025-06-11T15:18:59.139-07:00"
    },
    "relationships": {
      "email_addresses": {
        "data": [
          {
            "id": "62474cf9-fb7e-4443-99c9-77fa46777749",
            "type": "user_email_addresses"
          }
        ]
      },
      "phone_numbers": {
        "data": []
      },
      "devices": {
        "data": []
      },
      "role": {
        "data": {
          "id": "3237256e-a138-437d-9538-cba4330c2a5f",
          "type": "roles"
        }
      },
      "on_call_role": {
        "data": {
          "id": "ce0aa9fe-74e6-4138-b267-ec34489a6394",
          "type": "on_call_roles"
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/vnd.api+json

Response

200
application/vnd.api+json

update name and role simultaneously

The response is of type object.