/admin/imports/{id}/cancelA queued job ends now and never runs. A running Metron sync is asked to stop: it stops at its next progress write (within a few seconds) and is recorded as cancelled with what it got through, which stays imported. Other jobs (dump imports, enrichment, covers) can’t stop part-way and answer 409 not_cancellable. Asking again answers the first request. Audited.
collector.cancelAdminImport()admin:imports:writeIdempotency-KeyX-Request-Ididstring (uuid)required200OKThe job: cancelled, or still running with `cancelRequestedAt` set until its run stops.
idstringrequiredproviderstringrequiredkindstringrequiredstatus"queued" or "running" or "succeeded" or "failed" or "cancelled"requiredOption 1: "queued"
Option 2: "running"
Option 3: "succeeded"
Option 4: "failed"
Option 5: "cancelled"
progressnumberrequiredtotalnumber or nullrequiredparamsanyrequiredAny JSON value.
resultany or nullrequirederrorstring or nullrequiredcreatedAtstringrequiredstartedAtstring or nullrequiredfinishedAtstring or nullrequiredcancellablebooleanrequiredWhether POST /admin/imports/{id}/cancel would stop it now: queued, or a running job that can stop part-way (the Metron syncs).
cancelRequestedAtstring or nullrequiredWhen someone asked it to stop; a running job stops at its next progress write.
invalid_idempotency_keyidempotency_key_requireddry_run_unsupported
invalid_idempotency_key: The Idempotency-Key isn’t 1–255 visible ASCII characters.
idempotency_key_required: An admin write made with an API key came without the header that makes it safe to retry.
dry_run_unsupported: This operation has no dry run, so ?dryRun=true is refused and nothing changes.
not_found: Not an admin (moderator): the same 404 as a missing route.
idempotency_in_progressnot_cancellablejob_finished
idempotency_in_progress: The first request with this key is still running.
not_cancellable: It’s running and can’t stop part-way.
job_finished: It already succeeded, failed or was cancelled.
idempotency_key_reused: This key was used for a different request.
rate_limitedtemporarily_blocked
rate_limited: Over the caller’s limit: the per-minute burst or the per-day quota (RateLimit headers; wait Retry-After seconds).
temporarily_blocked: Too many refused requests in a row: blocked for a while (Retry-After says how long).
internal: Something went wrong on our side (quote the requestId).
not_migrated: The tool needs a database update that hasn’t been applied yet.