> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequenzy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel Push Import

> Stop a push import or discard a draft

Stops a running import, or discards a draft or failed one. Devices already imported stay. Staged rows and the stored source API key are deleted, and a canceled import cannot be restarted. Canceling a canceled import returns it unchanged. Requires the `subscribers:write` scope.

## Request

**importId** `string` *required*

The import ID.

```bash theme={null}
curl https://api.sequenzy.com/api/v1/push/imports/pimp_123/cancel \
  --request POST \
  --header "Authorization: Bearer $SEQUENZY_API_KEY"
```

## Responses

```json 200 theme={null}
{
  "success": true,
  "import": { "id": "pimp_123", "status": "canceled" },
  "message": "Import canceled."
}
```

```json 401 theme={null}
{
  "error": "Invalid API key"
}
```

```json 403 theme={null}
{
  "error": "API key is missing required scope: subscribers:write"
}
```

```json 404 theme={null}
{
  "error": "Push import not found."
}
```

```json 409 theme={null}
{
  "error": "This import already completed."
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.