Change applicants password
Change applicants password
The /changePassword endpoint changes the applicants password.
By sending the following POST-request, you can change the password:
1 2 |
curl -i -H "Authorization: Bearer TOKEN" -H "Content-Type: application/x-www-form-urlencoded" -X POST -d "op={oldPassword}" -d "np={newPassword}" "https://api.softgarden.io/api/rest/v3/frontend/changePassword" |
with TOKEN being a user access token. It is used to determine the validity of this request. That the changes take effect, the {oldPassword} has to be the current password in the database, which will be replaced by {newPassword} on success.
Path parameters
– none –
Query parameters
– none –
Post parameters
Name | Description | Data Type |
---|---|---|
op | The applicant’s old/current password. | String |
np | The new password of the applicant. | String |
Response values
Upon | Returned value | Description |
---|---|---|
success | boolean | ‘true’ if the password was changed successfully, ‘false’ otherwise (e.g. old password was wrong). |
failure | 500 – INTERNAL SERVER ERROR | When an error appears while processing your request. |
authorization error | 401 / 403 | See here for details. |