---
title: "Update user"
method: POST
path: "/console/v1/users/{email}"
tags: ["Users"]
---

# Update user

`POST /console/v1/users/{email}`

## Path parameters

- `email` string, required

## Request body

- UserUpdateDto — Schema for updating user information.
  - `role` string — Update the user's role. Can be 'Admin', 'Read Only', 'Member', or any custom role name.
  - `firstName` string — Update the user's first name.
  - `lastName` string — Update the user's last name.

## Response `200`

Update user response

- object
  - `message` string, required — A simple string explaining the result of the operation.
  - `data` object, required — A single result.
    - `userID` string, required — The user's unique ID.
    - `email` string, email, required — The email address of the user.
    - `firstName` string, required — The user's first name.
    - `lastName` string, required — The user's last name.
    - `role` string, required — The user's role, which can be 'Admin', 'Read Only', 'Member', or any custom role name.

## Other responses

- `400` — Invalid request. Please check the request input and try again.
- `401` — This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx
- `403` — Forbidden. The request was valid, but the server is refusing action. You might not have the necessary permissions to access the resource.
- `404` — Not Found. The requested resource could not be found.

---

[API](https://skmtc.net/statsig/apis/console-api.md) · [All operations](https://skmtc.net/statsig/apis/console-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/statsig/console-api/versions/3189f450c93b/schema)
