---
title: "Update a user"
method: PUT
path: "/v2/users/{userId}"
tags: ["Users"]
---

# Update a user

`PUT /v2/users/{userId}`

Updates the staff user account. Only fields present in the request body are changed. Returns the updated user.

## Path parameters

- `userId` string, required

## Request body

- UserUpdateRequest — Body of a `PUT /v2/users/{userId}` request.
  - `email` string
  - `first_name` string, nullable
  - `last_name` string, nullable
  - `password` string
  - `scopes` string[]

## Response `200`

Successful response

- UserResponse
  - `email` string, required
  - `first_name` string, required
  - `last_logged_in` string, required
  - `last_name` string, required
  - `locked` boolean, required
  - `scopes` string[], required
  - `user_id` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `402` — Payment Required
- `403` — Forbidden
- `415` — Unsupported Media Type
- `429` — Too Many Requests

---

[API](https://skmtc.net/extole/apis/integration-api-server-to-extole.md) · [All operations](https://skmtc.net/extole/apis/integration-api-server-to-extole/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/extole/integration-api-server-to-extole/revisions/c16e62e66755/schema)
