Skip to main content
PATCH
/
v2
/
imports
/
{import_id}
/
rows
Patch Import Rows
const options = {
  method: 'PATCH',
  headers: {
    'x-organization-id': '<x-organization-id>',
    'x-api-key': '<api-key>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({corrections: [{row_index: 123, column: '<string>', value: '<unknown>'}]})
};

fetch('https://api.dcycle.io/v2/imports/{import_id}/rows', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "total_errors_remaining": 123,
  "updated_rows": [
    {
      "row_index": 123,
      "data": {},
      "errors": {}
    }
  ]
}

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

Batch of row corrections to apply to a session.

corrections
ImportCorrectionIn · object[]
required
Maximum array length: 500

Response

Successful Response

Result of applying a batch of row corrections.

total_errors_remaining
integer
required
updated_rows
ImportRowOut · object[]