Skip to main content
Skip table of contents

Deleting a session

Deleting a session. This will log out the corresponding device

POST/api/v1/sessions/{token}

Headers

Authorization

Bearer token

Accept

application/json

X-Client

ios-cctv|android-cctv|thick-legal|web

X-UUID

unique device id

Body

tokenoptional

int

The identifier of the session to be deleted

Response

200

Successful response

JSON
{"status": "ok"}
401

Authorization token not provided or invalid, see Obtaining a token

Example

JSON
curl -k --location --request POST 'https://vms.local/api/v1/sessions/{token}' \
--header 'Authorization:Bearer token' \
--header 'Accept:application/json' \
--header 'X-Client:ios-cctv|android-cctv|thick-legal|web' \
--header 'X-UUID:unique device id'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.