PUT
/
v1
/
users
/
{id}
Update a user
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": "518",
    "type": "users",
    "attributes": {
      "name": "New Name",
      "email": "julian@upton.example",
      "phone": null,
      "phone_2": null,
      "first_name": "New",
      "last_name": "Name",
      "full_name": "New Name",
      "full_name_with_team": "[Trantow-Kiehn] New Name",
      "slack_id": null,
      "time_zone": "Etc/UTC",
      "updated_at": "2025-09-18T00:30:45.800-07:00",
      "created_at": "2025-09-18T00:30:39.977-07:00"
    },
    "relationships": {
      "email_addresses": {
        "data": [
          {
            "id": "e67de72a-45d8-4ffe-ac04-2ba9d68b26c4",
            "type": "user_email_addresses"
          }
        ]
      },
      "phone_numbers": {
        "data": []
      },
      "devices": {
        "data": []
      },
      "role": {
        "data": {
          "id": "b0ec58c0-298f-4417-8b36-ec593d633c66",
          "type": "roles"
        }
      },
      "on_call_role": {
        "data": {
          "id": "f9fde929-b0dc-4acc-8ae4-353a5e734443",
          "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
data
object
required

Response

update name and role simultaneously

data
object
required