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": "566",
    "type": "users",
    "attributes": {
      "name": "New Name",
      "email": "kim.hansen@corkery.test",
      "phone": null,
      "phone_2": null,
      "first_name": "New",
      "last_name": "Name",
      "full_name": "New Name",
      "full_name_with_team": "[Runolfsdottir-Bradtke] New Name",
      "slack_id": null,
      "time_zone": "Etc/UTC",
      "updated_at": "2025-10-30T19:55:29.667-07:00",
      "created_at": "2025-10-30T19:55:23.482-07:00"
    },
    "relationships": {
      "email_addresses": {
        "data": [
          {
            "id": "9b937b1c-15e8-4603-8d69-9065ca33ca8d",
            "type": "user_email_addresses"
          }
        ]
      },
      "phone_numbers": {
        "data": []
      },
      "devices": {
        "data": []
      },
      "role": {
        "data": {
          "id": "18df15a0-0c73-4bad-8b88-f2056bf8e0a9",
          "type": "roles"
        }
      },
      "on_call_role": {
        "data": {
          "id": "2be034a4-27a0-42d6-b9eb-08193c21019c",
          "type": "on_call_roles"
        }
      },
      "teams": {
        "data": []
      },
      "schedules": {
        "data": []
      },
      "notification_rules": {
        "data": [
          {
            "id": "7d6e0389-8f9f-4235-b6e3-894a3d4811aa",
            "type": "user_notification_rules"
          },
          {
            "id": "d4e0afd0-ab4f-45de-a800-b1d64b1da93b",
            "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