API error
conflict
HTTP 409 · no credit is used for a request that ends in an error.
The request does not fit the current state of the resource, such as starting a bulk job that is still being analyzed or was canceled, failed or expired, canceling a job that has finished, or downloading results before a job has finished. Starting a job that is already queued, running or completed is not a conflict: the job is returned as it is and charged once. POST /v1/bulk also answers it when an account without a purchase already has 2 lists that are analyzing or ready; then no job was created.
What to do
Read the job again and act on its current status. For a refused upload, start or cancel one of the waiting lists first, or buy credits: the limit ends with the first purchase.
Retry
No: fix the request. When and how often to retry any error: retrying safely.
The answer
{
"error": {
"code": "conflict",
"message": "The request conflicts with the current state of the resource.",
"request_id": "req_7Hq2LmX9cV4bN8tR1zK6wD"
}
}Branch on code, which is stable; message is for people and may change. Keep request_id in your logs.
Headers that come with it:
X-Request-Id: Our ID for the request (same asrequest_idin bodies).
Endpoints that can answer it
POST /v1/bulk(409)DELETE /v1/bulk/{id}(409)POST /v1/bulk/{id}/start(409)GET /v1/bulk/{id}/results(409)