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
- */*
Body
first_name string
last_name string
email string
password string
Responses
- 200
- 401
- 403
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
message stringrequired
{
"message": "string"
}
{
"message": "user profile updated successfully"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
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
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "Forbidden"
}
{
"error": "Forbidden"
}
Loading...