Update Password
POST api/account/password/update
This is used to update the user’s password.
Example Request
curl -X 'POST' \ 'http://localhost:8080/api/account/password/update' \ -H 'accept: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "old_password": "johndoe", "new_password": "johndoe2"}'Request Body
Content Type: application/json
Content:
{ "old_password": "string", "new_password": "string"}Responses
200 - OK
The request was successful
Content Type: text/plain
Content:
Account password is successfully updated!400 - Bad Request
Validation Error
Content Type: application/json
Content:
{ "param_name": [ "string" ], "param_name_2": [ "string" ], "error": "string"}401 - Unauthorized
The request requires valid bearer token, but none were provided, or the bearer token is invalid.
429 - Too Many Requests
The user has exceeded the rate limit of 10 requests per minute.
500 - Internal Server Error
There is an issue with the backend. Sentry will provide a more detailed report on the problem.