User Tools

Site Tools


api:employee:clear-tokens

API : Employee Clear Tokens

Introduction

This request will remove tokens from the employee, which means that authenticated (logged in) sessions will be terminated.

Request

URL https://api.telecomx.dk/employee/EMPLOYEE_ID/clearTokens
Method GET
Access level PERSONAL, 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)
Query all True to also delete persistent token used for M2M.

Request example

https://api.telecomx.dk/employee/1234567890ABCDEF1234578/clearTokens
https://api.telecomx.dk/employee/1234567890ABCDEF1234578/clearTokens?all=true

Response

Json object
success Boolean True on success.

Example

{
  success: true
}

Errors

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
api/employee/clear-tokens.txt · Last modified: 2019/04/29 05:30 by Per Møller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki