---
title: "Update the signed-in user's profile."
method: POST
path: "/v1/update_user"
tags: ["Users"]
---

# Update the signed-in user's profile.

`POST /v1/update_user`

## Request

- Base URL: `https://partner.mindupload.app`
- URL: `https://partner.mindupload.app/v1/update_user`
- Auth: API key in header `X-Partner-Key`

## Request body

- object
  - `preferred_language` string, nullable: BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages.
  - `username` string, nullable: The end-user's username.
  - `password` string, nullable: The end-user's password on first sign-in. After login/register, send the returned session token (JWT) here instead — the field accepts either, and reusing the token keeps raw passwords out of your storage.
  - `email` string, nullable: A new email address for the account. Over the Partner API it is saved unverified, and the Partner API never uses it to reset the password.
  - `email_verification_code` string, nullable: Only a code the MindUpload app emailed to the new address for this account is accepted. The Partner API cannot send one, so leave this out; a wrong code fails the whole update.
  - `first_name` string, nullable
  - `last_name` string, nullable
  - `nickname` string, nullable
  - `gender` string, nullable
  - `birth_date` integer, nullable
  - `phone_number` string, nullable
  - `avatar_id` string, nullable
  - `accept_chatroom_invitation_by_others` boolean, nullable

## Response `200`

Result envelope — check the success field.

- object
  - `success` boolean: Whether the call succeeded.
  - `error_message` string, nullable: Human-readable reason when success is false.
  - `error_code` string

## Other responses

- `400`: Invalid request payload.
- `401`: Missing or invalid partner key.
- `403`: Partner is not authorized for this operation.
- `429`: Rate limit exceeded — retry later.
- `500`: Internal server error.

---

[API](https://skmtc.dev/mindupload/apis/mind-upload-partner-api.md) · [All operations](https://skmtc.dev/mindupload/apis/mind-upload-partner-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mindupload/apis/mind-upload-partner-api/revisions/0371bdf78533?raw)
