Skip to main content
Skip table of contents

Deleting a resource

Deletion of resource.

DELETE/api/v1/analytics/groups/{analytic_group}/files/{analytic_file}

Headers

Authorization

Bearer token

Accept

application/json

X-Client

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

X-UUID

unique device id

Body

analytic_groupoptional

int

Unique identifier of the resource group

analytic_fileoptional

int

Unique identifier of the resource

forcerequired

bool

true - The resource has been removed from all groups it belongs to

false - The resource has been removed only from the current group

Response

200

Resource successfully deleted

JSON
{
    "status": "ok"
}
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/analytics/groups/{analytic_group}/files/{analytic_file}?force=bool' \
--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.