POST
/v1/definitions/{key}/imports/{runId}/undoUndo an import batch
Removes exactly the rows one import run created and nothing else, keeping any that have since been converted into deals and naming each one it kept. Refuses a run that never finished, and refuses a second undo of the same batch. Reach for it after a mis-import instead of deleting rows by hand.
Access class: def:read.
Send request
Use the documented inputs to call this endpoint directly.
API serverbase URL
Bearer tokensessionoptional
Stored only in this browser for the session security scheme and reused on every API page in this group.
Parameters
Values are applied to the request and the example on the right.
keypath · stringrequired
runIdpath · stringrequired
Request body
application/jsonrequiredbodyobjectoptional
paramsoptional
queryobjectoptional
Responses
201application/json
the action's answer
{
"data": {
"kept": [
{
"dealRowId": "",
"reason": "string",
"rowId": ""
}
],
"removed": 1,
"run": {
"actorUserId": 1,
"createdAt": "string",
"error": "string",
"failed": 1,
"fileName": "string",
"finishedAt": "string",
"id": "",
"imported": 1,
"keptCount": 1,
"results": [
"string"
],
"standing": 1,
"status": "string",
"total": 1,
"undoneAt": "string",
"undoneBy": 1,
"undoneCount": 1
}
}
}dataoptional
defaultapplication/json
a refusal: {"error": "<what a person needs to read>"}. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.
{
"error": "string"
}errorstringrequired