This request will remove tokens from the employee, which means that authenticated (logged in) sessions will be terminated.
| URL | https://api.telecomx.dk/employee/EMPLOYEE_ID/clearTokens | |
|---|---|---|
| Method | GET | |
| Access level | PERSONAL or VIEWER for their own tokens only. MANAGER or OWNER if user belongs to the customer of the employee. RESELLER if customer belongs to the reseller and employee belongs to the customer. RESELLER_ADMIN. ADMIN. |
|
| Param | EMPLOYEE_ID | Id of the employee (24 hex-char string) |
| Query | all | True to also delete persistent token used for M2M. |
https://api.telecomx.dk/employee/1234567890ABCDEF1234578/clearTokens https://api.telecomx.dk/employee/1234567890ABCDEF1234578/clearTokens?all=true
| Json object | ||
|---|---|---|
| success | Boolean | True on success. |
{ success: true }
| Error code | Message | Description |
|---|---|---|
| 400 | employee | Employee id not found in request URI |
| 403 | employee | Insufficient access level |
| 404 | employee | Employee not found |
| 409 | employee | Employee does not have access to login |