Skip to main content

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.

HeaderValueRequiredDescription
Partner-Access-TokenBase64 StringYesPartner token.
AuthorizationBearer <token>YesUser Sanctum token.
Acceptapplication/jsonYes

Payload Parameters

ParameterTypeRequiredDescription
first_nameStringYesUser first name.
emailStringYesValid email unique within the partner.
countryStringYesCountry name.
profileFileOptionalJPEG, PNG, JPG, GIF, SVG, or WebP; maximum 5 MB.
nameStringOptionalDisplay name. A random value is used if omitted.
last_nameStringOptionalUser last name.
phoneStringOptionalPhone number.
tel_dialStringOptionalDial code. A leading + is removed.
addressStringOptionalAddress.
genderStringOptionalGender.
date_of_birthStringOptionalDate 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"
}