Update User Profile
PATCH/profile
Updates the profile details of the logged in user, including changing password for authenticated/logged in users. Note: all fields are optional but at least one should be sent in the request.
Request
- application/json
Body
first_name string
last_name string
email string
password string
Responses
- 200
- 401
- 403
OK
Response Headers
- application/json
- Schema
- Example (from schema)
- response
Schema
message stringrequired
{
"message": "string"
}
{
"message": "user profile updated successfully"
}
Unauthorized
Response Headers
- application/json
- Schema
- Example (from schema)
- response
Schema
error string
extras object
status number
message string
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
Forbidden
Response Headers
- application/json
- Schema
- Example (from schema)
- response
Schema
error string
{
"error": "Forbidden"
}
{
"error": "Forbidden"
}
Loading...