PUT /api/user/v1/reset-password/update/ described below.
Both
first_name and last_name are required even if you are only changing one field. Send the existing value for any field you do not wish to change.Request
Method:PUTURL:
http://localhost:8000/api/user/v1/edit/Authentication:
X-OTAS-USER-TOKEN header
Headers
Signed JWT returned by
/api/user/v1/login/ or /api/user/v1/create/.Body parameters
Updated first name.
Updated last name.
Updated middle name. Pass an empty string to clear it.
Response
1 on success, 0 on failure.user_profile_updated on success.Example
Updating the password
To change the authenticated user’s password, send aPUT request to PUT /api/user/v1/reset-password/update/ with the same X-OTAS-USER-TOKEN header.
Body parameters
New password. Minimum 6 characters.
{ "status": 1, "status_description": "password_updated", "response_body": null }.
Error responses
status_description | HTTP status | Cause |
|---|---|---|
missing_token | 400 | The X-OTAS-USER-TOKEN header was absent. |
invalid_token | 401 | The token is malformed, expired, or not associated with a user. |
missing_required_fields | 400 | first_name or last_name was empty or missing from the body. |
password_too_short | 400 | Password supplied to the password-update endpoint is fewer than 6 characters. |