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
| Key | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer <Token> | Yes | JWT Token obtained during login |
Request Parameters (JSON / Form Data)
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
firstName | string | No | First Name | John |
lastName | string | No | Last Name | Doe |
dateBirth | string | No | Date of birth, format YYYY-MM-DD | 1990-01-01 |
email | string | No | Email address | john.doe@example.com |
ddi | string | No | Mobile phone area code | 86 |
mobile | string | No | Mobile 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"
}