---
title: "Update a user"
method: PATCH
path: "/users/{id}"
tags: ["user"]
---

# Update a user

`PATCH /users/{id}`

Updates an existing user. Only provided fields are modified.

**Rate limit:** 20 requests per minute

## Path parameters

- `id` string, required

## Request body

- UpdateUserRequestBody
  - `avatar_url` string — The avatar URL of the user. Must be a square .png, .jpg or .jpeg.
  - `name` string — The name of the user.
  - `role_id` string — The role_id of the user.
  - `status` string — The new user status for the user. Can be one of `active`, `away`, or `out_of_office`.

## Response `200`

- GetUserResponseBody
  - `data` User
    - `avatar_url` string — The avatar URL of the user.
    - `email` string — The primary email of the user.
    - `emails` string[] — The list of all emails of the user.
    - `id` string — The ID of the user.
    - `name` string — The name of the user.
    - `role` MiniRole
      - `id` string — The ID of the role.
      - `name` string — The name of the role.
      - `slug` string — The slug of the role.
    - `role_id` string — The role_id of the user.
    - `status` string — The status of the user.
  - `request_id` string — The request ID for tracking.

## Other responses

- `400` — The request was invalid or could not be completed.
- `404`
- `500` — An unexpected internal error occurred.

---

[API](https://skmtc.net/usepylon/apis/pylon-api.md) · [All operations](https://skmtc.net/usepylon/apis/pylon-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usepylon/pylon-api/versions/999c51740b4e/schema)
