Update Profile Endpoint
Updates the current user's profile.
- Endpoint:
/api/v1/update-profile - Method:
POST - Authentication: Partner token and user bearer token.
Headers
Use multipart/form-data when uploading profile; otherwise JSON is accepted. Do not manually set the multipart boundary.
| Header | Value | Required | Description |
|---|---|---|---|
Partner-Access-Token | Base64 String | Yes | Partner token. |
Authorization | Bearer <token> | Yes | User Sanctum token. |
Accept | application/json | Yes |
Payload Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
first_name | String | Yes | User first name. |
email | String | Yes | Valid email unique within the partner. |
country | String | Yes | Country name. |
profile | File | Optional | JPEG, PNG, JPG, GIF, SVG, or WebP; maximum 5 MB. |
name | String | Optional | Display name. A random value is used if omitted. |
last_name | String | Optional | User last name. |
phone | String | Optional | Phone number. |
tel_dial | String | Optional | Dial code. A leading + is removed. |
address | String | Optional | Address. |
gender | String | Optional | Gender. |
date_of_birth | String | Optional | Date in YYYY-MM-DD format. |
Sample Response
{
"result": 1,
"message": "Your profile has been updated successfully."
}
Sample Failure Response
{
"result": 0,
"message": "email already exist"
}