Search and DownloadsCancel a Download

Cancel a Download

Cancel an in-progress download. Cancelled downloads retain records added before cancellation.

curl -X DELETE "https://api.datafiniti.co/v4/downloads/example_string" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "message": "example_string"
}
DELETE
/downloads/{id}
DELETE
Bearer Token
Bearer Tokenstring
Required

Bearer token obtained from the /auth endpoint. Include in requests as: Authorization: Bearer <token>

Bearer token obtained from the /auth endpoint. Include in requests as: Authorization: Bearer <token>
path
idstring
Required

The unique identifier of the download to cancel

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Bearer token obtained from the /auth endpoint. Include in requests as: Authorization: Bearer <token>

Path Parameters

idstring
Required

The unique identifier of the download to cancel

Responses

messagestring

Confirmation message

Cancelling a download will stop the download, but not delete it. It will still include all records that were added to the download before it was cancelled, and you will be able to retrieve these records still, through GET /downloads/{id}.

Your account will still have credits deducted for the number of records that were added before the download was cancelled.