Cancel Scan File

Url

/file/<data_id>/cancel

Method

POST

When cancelling a file scan, the connected scans that are still in progress will be cancelled also. The cancelled scan will be closed.

Header

Description

apikey (OPTIONAL)

User's session id, if it was set for creation it is required

Result Code

Description

200

File scan cancelled successfully

400

Bad request, (e.g.: scan already finished)

404

Scan not found

405

Access denied

500

Internal server error

HTTP status code: 200

{
[data_id]: "cancelled"
}

HTTP status code: 500, 405, 404, 400

{
"err": <error message>
}