cancel_import
Cancel a scheduled or in-progress import. Already imported rows are not rolled back; returns the updated import status.
Instructions
Cancels a SCHEDULED or IN_PROGRESS import. Already-imported rows are NOT rolled back — use revert_import for that. Returns the updated import status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | Yes | Company id from list_companies. | |
| importId | Yes | Import id from list_imports. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Import id. | |
| status | Yes | Lifecycle status (SCHEDULED, IN_PROGRESS, FINISHED, FINISHED_WITH_WARNINGS, FAILED, CANCELED, REVERTING, REVERTED). | |
| entityName | No | Entity type being imported. | |
| fileName | No | Uploaded file name. | |
| summary | No | Counts per result type. | |
| createdAt | No | ISO timestamp. | |
| finishedAt | No | ISO timestamp when reached terminal status, if applicable. |