Subscribers

Cancel an import

DELETE /api/v1/import-jobs/{job_uid}

Stops a queued or running import. The job stays readable, with the status cancelled. Limited to 60 calls a minute.

Parameters
job_uid string required path
The job_uid the import answered with.
Responses
200 The import was cancelled.
401 The token is missing or wrong (Unauthenticated.), or its user may not act on this object (Unauthorized). Without the Accept: application/json header, a missing or wrong token answers with a redirect to the sign-in page instead.
403 The job is not an import into one of the token's lists.
404 No job has this uid.
Cancel an import
1 2 3
curl -X DELETE 'https://your-domain/api/v1/import-jobs/6af7d91f0e1c7' \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
Response
{
    "message": "cancelled",
    "job_uid": "6af7d91f0e1c7",
    "status": "cancelled"
}