Skip to main content
Skip table of contents

Deleting a downloaded archive. VMS Client API

Deletes a download. After deletion, it will no longer be in history, and it will no longer be possible to download it again.

DELETE/api/v1/users/downloads/{download}

Headers

Authorization

Bearer token

Accept

application/json

X-Client

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

X-UUID

unique device id

Body

downloadoptional

int

Download Identifier to be deleted

Response

200

Successful response

JSON
{"status" : "ok"}
401

Authorization token not provided or invalid

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"
        ]
    }
}
404

If the download is not owned by the user or does not exist

Example

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