Update User 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.
- application/json
Request 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 string required
{
"message": "string"
}
{
"message": "user profile updated successfully"
}
Unauthorized
Response Headers
- application/json
- Schema
- Example (from schema)
- response
Schema
- error string
extras object
status numbermessage 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...