Skip to content

Cancel an in-flight backfill run

POST
/admin/metadata-extraction/backfills/{id}/cancel

Flips cancelled_at to NOW(). The running coordinator job observes the flag on the next batch boundary + exits cleanly. Already-cancelled / already-completed runs are no-ops (returns 204). 404 if the id never existed.

Gated on system.admin.

id
required
string format: uuid

Cancellation accepted.

Authentication required, missing, or invalid

object
error
required

Human-readable error summary

string
Example
the request could not be completed
Example
{
"error": "authentication required: sign in and retry with a valid session or API token"
}

Authenticated but missing required capabilities

object
error
required

Human-readable error summary

string
Example
the request could not be completed

Resource not found

object
error
required

Human-readable error summary

string
Example
the request could not be completed