This API is used to set a new password on an account using the token from a reset link.
| URL | https://api.telecomx.dk/auth/setpassword | |
|---|---|---|
| Method | POST/GET | |
| Body/Query | token | Reset link token. |
| password | New password consisting of at least 8 lowercase/uppercase/digits. | |
{
token: 'dhsy23yh9uewhvoewb0fh08wqhenbovu2he08whbvoeh08vjh0ien0eqj-dnqwpifwrvda',
password: 'secret'
}
| JSON object | |||
|---|---|---|---|
| Property | Type | Description | Extended |
| success | Boolean | True on success | |
{ success: true }
| Error code | Message | Description |
|---|---|---|
| 403 | account | Account disabled |
| 403 | username | Employee is using 2-factor authentication |
| 422 | token | Invalid token |
| 422 | password | Password does not meet the required complexity. |
| 500 | internal_error | Internal server error |