---
title: "Abort a running entity import"
method: POST
path: "/v1/entity:abortImport"
tags: ["Import-Export"]
---

# Abort a running entity import

`POST /v1/entity:abortImport`

Asks a running import to stop. Rows already imported are **kept** - this is a stop, not a
rollback - and the job still produces its result reports for everything that landed before
the stop, then reaches the terminal status `CANCELLED`.

The stop is cooperative: the worker notices the request at its next batch boundary, so the
job typically reaches `CANCELLED` within seconds. Poll `POST /v1/entity:import` with the
`job_id` as usual to observe it.

Idempotent - aborting an already-aborted or already-finished job is not an error.

## Query parameters

- `job_id` string, required — The unique identifier of the import job.
- `schema` string, required

## Response `202`

The stop was requested. The job is still running until the worker picks the request up.

- object
  - `status` string — The job status at the time of the request.
  - `jobPollId` string

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — No such import job
- `429` — Too many requests

---

[API](https://skmtc.net/epilot/apis/entity-api.md) · [All operations](https://skmtc.net/epilot/apis/entity-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/epilot/entity-api/revisions/3020984570dc/schema)
