Skip to main content
Skip table of contents

Deleting calls

After deleting the calls, the user will receive a push notification via WebSocket in the channel "user.{ID}" with an array of the IDs of the deleted calls. The push notification will not be sent to the device that made this request

DELETE/api/v1/intercom/calls

Headers

Authorization

Bearer token

Accept

application/json

X-Client

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

X-UUID

unique device id

Body

json

JSON
{
    "ids": [
        2,
        6,
        9
    ]
}

idsrequired

array

Array of call IDs to be deleted, with a maximum of 200 calls in one request

Response

204

Successful response

401

Authorization token not provided or invalid, see Obtaining a token

422

Returns a JSON object with an error, see Validation

JSON
{
    "message": "There won't be any informative message here",
    "errors": {
        "any_key": [
            "Here the error cause will be described"
        ]
    }
}

Example

JSON
curl -k --location --request DELETE 'https://vms.local/api/v1/intercom/calls' \
--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 '{
    "ids": [
        2,
        6,
        9
    ]
}'
JavaScript errors detected

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

If this problem persists, please contact our support.