User Tools

Site Tools


api:employee:deletetoken

API : Employee Delete Token

Introduction

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.

Request

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.

Request example

POST https://api.telecomx.dk/employee/1234567890ABCDEF1234578/token/dcfhkje2y82ey89dfwguio2389gdwiegh289hbdwge9dw

Response

Json object
success Boolean True on success.

Example

{
  success: true
}

Errors

Error code Message Description
404 id Employee not found
404 token Token not found
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/employee/deletetoken.txt · Last modified: 2019/04/30 14:40 by Per Møller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki