Requires a valid authentication token in the
AUTH header.
Headers
Authentication token (JWT) obtained from the
/auth/login endpointRequest Body
The new email address of the user
The new password for the account
Example Request
Example Response
Success Response
| Status | Description |
|---|---|
| 200 | User updated successfully |
Error Responses
| Status | Description | Example |
|---|---|---|
| 400 | Invalid input | { "detail": "Invalid input format." } |
| 401 | Invalid or missing token | { "detail": "Unauthorized: Invalid or expired token." } |
| 403 | Account not validated | { "detail": "Forbidden: Account is not validated yet." } |