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": "1088",
    "type": "users",
    "attributes": {
      "name": "New Name",
      "email": "[email protected]",
      "phone": null,
      "phone_2": null,
      "first_name": "New",
      "last_name": "Name",
      "full_name": "New Name",
      "full_name_with_team": "[Krajcik, Lind and Kiehn] New Name",
      "slack_id": null,
      "time_zone": "Etc/UTC",
      "updated_at": "2026-02-12T04:41:15.571-08:00",
      "created_at": "2026-02-12T04:41:11.539-08:00"
    },
    "relationships": {
      "email_addresses": {
        "data": [
          {
            "id": "a0f9b54a-65de-4d28-b41c-ae14e657d036",
            "type": "user_email_addresses"
          }
        ]
      },
      "phone_numbers": {
        "data": []
      },
      "devices": {
        "data": []
      },
      "role": {
        "data": {
          "id": "f27fc242-80b2-4738-ba55-c9f637fe625a",
          "type": "roles"
        }
      },
      "on_call_role": {
        "data": {
          "id": "0d153631-9f5a-43dc-8274-92603e548aa7",
          "type": "on_call_roles"
        }
      },
      "teams": {
        "data": []
      },
      "schedules": {
        "data": []
      },
      "notification_rules": {
        "data": [
          {
            "id": "a896f8f7-3cc6-4974-b0a8-dee0316cb921",
            "type": "user_notification_rules"
          },
          {
            "id": "51a49d45-1f8c-4445-b52c-c361296255ff",
            "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