Skip to content

Update Member Language API

Path: /client/member/update-language

Method: POST

Description: Update the system language setting of the currently logged-in member. After modification, the client's next request will return the response content in the corresponding language.

Request Header

KeyValueRequiredDescription
AuthorizationBearer <Token>YesJWT Token obtained upon login

Request Parameters (JSON / Form Data)

ParameterTypeRequiredDescriptionExample
languagestringYesLanguage codezh_cn or en_us

Response Example

Success Response

json
{
  "code": 0,
  "data": "success",
  "msg": "Operation successful"
}

Failure Response

Parameter Error

json
{
  "code": 7,
  "data": {},
  "msg": "Parameter error"
}

Unauthorized or Token Expired

json
{
  "code": 7,
  "data": {},
  "msg": "Verify failed: unauthorized"
}

Update Failed

json
{
  "code": 7,
  "data": {},
  "msg": "Update failed"
}