---
title: "Update the user"
method: PUT
path: "/cm/v1/auth/users/{user_id}"
tags: ["User"]
---

# Update the user

`PUT /cm/v1/auth/users/{user_id}`

Update the user's info such as name.

## Path parameters

- `user_id` string, required

## Request body

- object
  - `user` DspUser, required — User represents a single user.
    - `email` string — Email of User. Immutable.
    - `id` string — ID of User. Immutable.
    - `name` string — First name of the User.
    - `last_name` string — Last name of the User.
    - `company_name` string — Company name of the User.
    - `terms_agreed` boolean — Whether the user agreed to terms and privacy policy.
    - `marketing_agreed` boolean — Whether the user agreed to receive marketing purpose informations.
    - `locale` 'UNKNOWN_LOCALE' | 'EN_US' | 'KO_KR' | 'JA_JP' — Locale enumerates the supported user locale values. - EN_US: English (United States) - KO_KR: Korean (South Korea) - JA_JP: Japanese (Japan)
    - `created_at` string, date-time — The time when a user was created.
    - `updated_at` string, date-time — The time when a user was updated.

## Response `200`

A successful response.

- MessagesUpdateUserResponse
  - `user` DspUser — User represents a single user.
    - `email` string — Email of User. Immutable.
    - `id` string — ID of User. Immutable.
    - `name` string — First name of the User.
    - `last_name` string — Last name of the User.
    - `company_name` string — Company name of the User.
    - `terms_agreed` boolean — Whether the user agreed to terms and privacy policy.
    - `marketing_agreed` boolean — Whether the user agreed to receive marketing purpose informations.
    - `locale` 'UNKNOWN_LOCALE' | 'EN_US' | 'KO_KR' | 'JA_JP' — Locale enumerates the supported user locale values. - EN_US: English (United States) - KO_KR: Korean (South Korea) - JA_JP: Japanese (Japan)
    - `created_at` string, date-time — The time when a user was created.
    - `updated_at` string, date-time — The time when a user was updated.

## Other responses

- `default` — Error. Detailed cause can be found in the `details` field.

---

[API](https://skmtc.net/moloco/apis/moloco-ads-campaign-management-api.md) · [All operations](https://skmtc.net/moloco/apis/moloco-ads-campaign-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/moloco/moloco-ads-campaign-management-api/revisions/5c85d0910ac0/schema)
