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": "487",
    "type": "users",
    "attributes": {
      "name": "New Name",
      "email": "maureen@lowe.test",
      "phone": null,
      "phone_2": null,
      "first_name": "New",
      "last_name": "Name",
      "full_name": "New Name",
      "full_name_with_team": "[Abernathy, Koss and Weber] New Name",
      "slack_id": null,
      "time_zone": "UTC",
      "updated_at": "2025-05-30T21:07:52.781-07:00",
      "created_at": "2025-05-30T21:07:43.590-07:00"
    },
    "relationships": {
      "email_addresses": {
        "data": [
          {
            "id": "917f926e-d2d3-4740-92a1-c05417ea8c29",
            "type": "user_email_addresses"
          }
        ]
      },
      "phone_numbers": {
        "data": []
      },
      "devices": {
        "data": []
      },
      "role": {
        "data": {
          "id": "df1626ca-f696-4b88-b450-d10a802659ad",
          "type": "roles"
        }
      },
      "on_call_role": {
        "data": {
          "id": "6f2b46e8-a462-4856-9f67-5cbd2cd63199",
          "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.