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

# Update a user

`PATCH /users/{user_id}`

Updates the specified user.

## Request body

- object
  - `username` string — The user's username.
  - `first_name` string — The user's first name.
  - `last_name` string — The user's last name.
  - `picture` string, uri — The user's picture.
  - `company` string — The user's company.
  - `website` string, uri — The user's website.
  - `country` string — The user's country (2-letter country code).

## Response `200`

OK

- User
  - `id` string, uuid, required — The ID of the user.
  - `deactivated` boolean, required — Whether the user has been deactivated.
  - `namespace` string, required — The namespace in which the user's username is unique.
  - `username` string, required — The user's username.
  - `email` string, email, required — The user's email address.
  - `email_verified` boolean, required — Whether the user's email address has been verified.
  - `first_name` string, required — The user's first name.
  - `last_name` string, required — The user's last name.
  - `picture` string, uri, required — The user's picture.
  - `company` string, required — The user's company.
  - `website` string, uri, required — The user's website.
  - `country` string, required — The user's ISO 3166-1 alpha-2 country code.
  - `created_at` string, date-time, required — The date and time when the user was created.
  - `updated_at` string, date-time, required — The date and time when the user was last updated.
  - `consented_at` string, date-time — The date and time when the user consented to the Terms of Service.
  - `consent_method` 'opt-in' | 'text-ref' — The method by which the user consented to the Terms of Service.

## Other responses

- `400` — Bad Request
- `403` — Forbidden

---

[API](https://skmtc.net/upsun/apis/upsun-com-rest-api.md) · [All operations](https://skmtc.net/upsun/apis/upsun-com-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/upsun/upsun-com-rest-api/revisions/6cc88fde6435/schema)
