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": "micheal.goodwin@schuppe.test",
      "phone": null,
      "phone_2": null,
      "first_name": "New",
      "last_name": "Name",
      "full_name": "New Name",
      "full_name_with_team": "[Schumm-Schmidt] New Name",
      "slack_id": null,
      "time_zone": "Etc/UTC",
      "updated_at": "2025-11-21T14:35:19.261-08:00",
      "created_at": "2025-11-21T14:35:12.559-08:00"
    },
    "relationships": {
      "email_addresses": {
        "data": [
          {
            "id": "a77dd180-7fcb-4ce4-bc8b-f14b34d4f4f6",
            "type": "user_email_addresses"
          }
        ]
      },
      "phone_numbers": {
        "data": []
      },
      "devices": {
        "data": []
      },
      "role": {
        "data": {
          "id": "aafc479f-444f-4740-937c-1cc3e79143ce",
          "type": "roles"
        }
      },
      "on_call_role": {
        "data": {
          "id": "85cc366f-aac2-4777-b433-c3313efbef5b",
          "type": "on_call_roles"
        }
      },
      "teams": {
        "data": []
      },
      "schedules": {
        "data": []
      },
      "notification_rules": {
        "data": [
          {
            "id": "badc06d8-6024-45cb-9a52-05ed9d04aef3",
            "type": "user_notification_rules"
          },
          {
            "id": "8a60c415-b468-4df3-bba2-f54579d5757e",
            "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