Cancel Table Import
Cancel an upload or processing import without rolling back committed row batches.
Canceling an import that is not in a cancelable state returns 409 naming the current status, and that includes an expired import — expired is a terminal import status, not a 410. An import id that never existed, or one whose retention window already purged the record, returns 404.
/api/v2/tables/imports/{importId}Authorization
apiKey Your Sim API key, personal or workspace-scoped. Generate one from the Sim dashboard under Settings > API Keys. A workspace API key is not accepted everywhere: operations that act on behalf of a specific human — administrative reads, secret access, and irreversible or governance-affecting writes — always reject it, whatever role the key carries. Each such operation says so in its own description, and the rejection surfaces as 403 unless the operation conceals unauthorized resources, in which case it is reported as 404. Use a personal API key for those.
In: header
Path Parameters
Unique table-import identifier.
1 <= lengthQuery Parameters
Workspace that owns the transfer resource.
1 <= lengthHeader Parameters
Signed upload control token returned when an upload-backed import was created.
1 <= lengthResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://www.sim.ai/api/v2/tables/imports/string?workspaceId=string"{
"data": {
"id": "string",
"workspaceId": "string",
"status": "uploading",
"source": {
"type": "upload",
"name": "string",
"contentType": "string",
"size": 1
},
"target": {
"type": "new",
"name": "string",
"folderPath": "string"
},
"tableId": "string",
"rowsProcessed": 0,
"error": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"completedAt": "2019-08-24T14:15:22Z"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "The request is invalid."
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "The request is invalid."
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "The request is invalid."
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "The request is invalid."
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "The request is invalid."
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "The request is invalid."
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "The request is invalid."
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "The request is invalid."
}
}