Skip to content

Update Member Profile API

Path: /client/member/update-profile

Method: POST

Description: Updates the profile information of the currently logged-in member, including first name, last name, date of birth, email, mobile DDI, and mobile number.

Request Header

KeyValueRequiredDescription
AuthorizationBearer <Token>YesJWT Token obtained during login

Request Parameters (JSON / Form Data)

ParameterTypeRequiredDescriptionExample
firstNamestringNoFirst NameJohn
lastNamestringNoLast NameDoe
dateBirthstringNoDate of birth, format YYYY-MM-DD1990-01-01
emailstringNoEmail addressjohn.doe@example.com
ddistringNoMobile phone area code86
mobilestringNoMobile number (without area code)13800138000

Response Examples

Success Response

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

Failure Responses

Parameter Error

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

Unauthorized or Invalid Token

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

Update Failed

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