---
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

## Changes

> 9 revisions in range; 5 could not be searched.

- **2026-07-31** `4012e369e1dc` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/epilot/apis/entity-api/changes/v1/entity:abortImport/post.md)

---

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