Cancel a migration before document import and remove its staged copy
POST/api/v1/paperless-imports/:import_id/cancel
Canceling never changes the browser-selected export. A migration that already began importing documents cannot be canceled; it remains restart-safe instead.
Request
Responses
- 202
- 401
- 403
- 409
- 503
Workflow canceled and staging cleanup requested
The opaque credential is absent, ambiguous, malformed, expired, revoked, or invalid
The browser mutation did not originate from this application, or the authenticated member lacks the required permission
Duplicate content is disallowed, or an idempotency key was reused for a different request
A required core dependency is unavailable; retry with bounded backoff