Edit profile
This endpoint allows the authenticated user to edit their profile details.
Header parameters
AuthorizationstringRequired
Bearer token for authentication.
Body
usernamestringRequiredExample:
john_doephoneNumberstringRequiredExample:
+1234567890emailstringRequiredExample:
john.doe@example.comaddressstringOptionalExample:
123 Main St, SpringfieldavatarstringOptionalExample:
http://example.com/avatar.jpgResponses
200
Successfully updated the user profile
*/*
statusintegerOptional
messagestringOptional
400
Bad Request, invalid input or missing fields
*/*
post/auth/edit-profile
POST /backend/api/auth/edit-profile HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: */*
Accept: */*
Content-Length: 160
{
"username": "john_doe",
"phoneNumber": "+1234567890",
"email": "john.doe@example.com",
"address": "123 Main St, Springfield",
"avatar": "http://example.com/avatar.jpg"
}{
"status": 1,
"message": "Successfully updated the profile"
}
