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

preferred_languagestring nullable

BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages.

usernamestring nullable

The end-user's username.

passwordstring 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.

emailstring 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_codestring 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_namestring nullable
last_namestring nullable
nicknamestring nullable
genderstring nullable
birth_dateinteger nullable
phone_numberstring nullable
avatar_idstring nullable
accept_chatroom_invitation_by_othersboolean nullable

Response

Result envelope — check the success field.

successboolean

Whether the call succeeded.

error_messagestring nullable

Human-readable reason when success is false.

error_codestring

Changes

No recorded changes to this operation across all 2 revisions of this API.