This request will create a token, that can be used for M2M communications. The token bearer will have the same access as the employee that it is linked to.
Managers and up can create and delete tokens, but only the employee herself may view the token generated.
| URL | https://api.telecomx.dk/employee/EMPLOYEE_ID/token/TOKEN | |
|---|---|---|
| Method | DELETE | |
| Access level | 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. ADMIN. |
|
| Param | EMPLOYEE_ID | Id of the employee (24 hex-char string) |
| TOKEN | Token to delete. | |
POST https://api.telecomx.dk/employee/1234567890ABCDEF1234578/token/dcfhkje2y82ey89dfwguio2389gdwiegh289hbdwge9dw
| Json object | ||
|---|---|---|
| success | Boolean | True on success. |
{ success: true }
| Error code | Message | Description |
|---|---|---|
| 404 | id | Employee not found |
| 404 | token | Token not found |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |