Skip to main content
Skip table of contents

Deleting a sub-user

If it was not possible to send a request to billing, then there will be a 400 error

DELETE/api/v1/users/subusers/{subuser}

Headers

Authorization

Bearer token

Accept

application/json

X-Client

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

X-UUID

unique device id

Body

subuseroptional

int

The ID of the sub-user to be removed

Response

200

Successful response

JSON
{"status": "ok"}
404

If the sub-user does not belong to the user or does not exist

401

Authorization token not provided or invalid, see Obtaining a token

Example

JSON
curl -k --location --request DELETE 'https://vms.local/api/v1/users/subusers/{subuser}' \
--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.