Skip to main content

Deleting keys

Key deletion is performed regardless of whether it was created only for the platform, only for the intercom, or for both – the key will be deleted in any case. It is not possible to delete a key from a user if they have 'type' => 'main'.

DELETE/api/admin/v1/intercoms/{intercom}/keys

Headers

Authorization

Bearer token

Accept

application/json

X-Client

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

X-UUID

unique device id

Body

json

JSON
{
    "keys": [
        "14ec4e5b",
        "14ec5e5b"
    ]
}

intercomoptional

int

Unique identifier of the intercom

keysrequired

array

Array of intercom keys to be deleted

Response

204

Successful response

401

Authorization token is not provided or is invalid. Obtaining a token

422

Returns a JSON object with an error. Validation

JSON
{
    "message": "There will be no informative message here",
    "errors": {
        "any_key": [
            "The reason for the error will be described here"
        ]
    }
}

Example

JSON
curl -k --location --request DELETE 'https://vms.local/api/admin/v1/intercoms/{intercom}/keys' \
--header 'Authorization:Bearer token' \
--header 'Accept:application/json' \
--header 'X-Client:ios-cctv|android-cctv|thick-legal|web' \
--header 'X-UUID:unique device id' \
--header 'Content-Type: application/json \
--data-raw '{
    "keys": [
        "14ec4e5b",
        "14ec5e5b"
    ]
}'
JavaScript errors detected

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

If this problem persists, please contact our support.