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": "480",
    "type": "users",
    "attributes": {
      "name": "New Name",
      "email": "catalina_dicki@kub-lindgren.example",
      "phone": null,
      "phone_2": null,
      "first_name": "New",
      "last_name": "Name",
      "full_name": "New Name",
      "full_name_with_team": "[Armstrong Group] New Name",
      "slack_id": null,
      "time_zone": "UTC",
      "updated_at": "2025-05-12T16:30:35.406-07:00",
      "created_at": "2025-05-12T16:30:27.550-07:00"
    },
    "relationships": {
      "email_addresses": {
        "data": [
          {
            "id": "c3f31129-a831-49d0-a5a9-b29d04f0df49",
            "type": "user_email_addresses"
          }
        ]
      },
      "phone_numbers": {
        "data": []
      },
      "devices": {
        "data": []
      },
      "role": {
        "data": {
          "id": "d0667536-0eee-4a52-b888-2de9ec670f20",
          "type": "roles"
        }
      },
      "on_call_role": {
        "data": {
          "id": "dd9ce7bd-1b97-441e-b168-26a928507025",
          "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.