Skip to main content
POST
/
v2
/
imports
/
{import_id}
/
rows
/
delete
Delete Import Rows
const options = {
  method: 'POST',
  headers: {
    'x-organization-id': '<x-organization-id>',
    'x-api-key': '<api-key>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({row_indices: [123], delete_all_errors: false})
};

fetch('https://api.dcycle.io/v2/imports/{import_id}/rows/delete', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "deleted_count": 123,
  "total_rows": 123,
  "valid_rows": 123,
  "error_rows": 123
}

Documentation Index

Fetch the complete documentation index at: https://code.dcycle.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Headers

x-user-id
string<uuid>
x-api-key
string
x-organization-id
string<uuid>
required

Path Parameters

import_id
string<uuid>
required

Body

application/json

Rows to physically delete from a validated import session.

row_indices
integer[]
Maximum array length: 10000
delete_all_errors
boolean
default:false

Response

Successful Response

Result of deleting rows from an import session.

deleted_count
integer
required
total_rows
integer
required
valid_rows
integer
required
error_rows
integer
required