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": "dong@little.test",
      "phone": null,
      "phone_2": null,
      "first_name": "New",
      "last_name": "Name",
      "full_name": "New Name",
      "full_name_with_team": "[Reynolds, Fisher and Jacobi] New Name",
      "slack_id": null,
      "time_zone": "Etc/UTC",
      "updated_at": "2025-11-27T00:13:38.494-08:00",
      "created_at": "2025-11-27T00:13:31.400-08:00"
    },
    "relationships": {
      "email_addresses": {
        "data": [
          {
            "id": "307db67f-c8a0-4f5c-8089-8449ca59c2c8",
            "type": "user_email_addresses"
          }
        ]
      },
      "phone_numbers": {
        "data": []
      },
      "devices": {
        "data": []
      },
      "role": {
        "data": {
          "id": "9c8e6d57-43dc-476a-9a77-53c852770e43",
          "type": "roles"
        }
      },
      "on_call_role": {
        "data": {
          "id": "1ff1807f-00ae-497d-9fe3-d2c96e413002",
          "type": "on_call_roles"
        }
      },
      "teams": {
        "data": []
      },
      "schedules": {
        "data": []
      },
      "notification_rules": {
        "data": [
          {
            "id": "3b7760f2-15af-430a-ab64-f3c5159b764e",
            "type": "user_notification_rules"
          },
          {
            "id": "40285f57-fe50-4291-b1e1-5745434fbe52",
            "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