Skip to main content
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": "568",
    "type": "users",
    "attributes": {
      "name": "New Name",
      "email": "mohammed.little@grady-lakin.example",
      "phone": null,
      "phone_2": null,
      "first_name": "New",
      "last_name": "Name",
      "full_name": "New Name",
      "full_name_with_team": "[Abernathy, Hermiston and Russel] New Name",
      "slack_id": null,
      "time_zone": "Etc/UTC",
      "updated_at": "2025-11-13T23:55:00.882-08:00",
      "created_at": "2025-11-13T23:54:54.434-08:00"
    },
    "relationships": {
      "email_addresses": {
        "data": [
          {
            "id": "8de8d938-615a-4292-aaa8-4ba4dd09d207",
            "type": "user_email_addresses"
          }
        ]
      },
      "phone_numbers": {
        "data": []
      },
      "devices": {
        "data": []
      },
      "role": {
        "data": {
          "id": "25211190-0695-47c8-be8a-b12f4eb88f60",
          "type": "roles"
        }
      },
      "on_call_role": {
        "data": {
          "id": "338a14b8-20c0-48b5-b09e-9c9d4b46ed42",
          "type": "on_call_roles"
        }
      },
      "teams": {
        "data": []
      },
      "schedules": {
        "data": []
      },
      "notification_rules": {
        "data": [
          {
            "id": "de0b8e6b-eb7c-415e-b3dc-4b69df959f23",
            "type": "user_notification_rules"
          },
          {
            "id": "b462e8d0-568c-49ca-bf78-7a328e2a9ae5",
            "type": "user_notification_rules"
          }
        ]
      }
    }
  }
}

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