Skip to main content
POST
/
v2
/
imports
/
{import_id}
/
submit
Submit Import
const options = {
  method: 'POST',
  headers: {
    'x-partner': '<x-partner>',
    'x-organization-id': '<x-organization-id>',
    'x-api-key': '<api-key>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({ignore_errors: false})
};

fetch('https://api.dcycle.io/v2/imports/{import_id}/submit', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "status": "<string>",
  "rows_submitted": 123,
  "file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "processing_job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

x-api-key
string
header
required

Headers

x-partner
enum<string>
required

An enumeration.

Available options:
dcycle,
onau
x-api-key
string
x-organization-id
string<uuid>
required

Path Parameters

import_id
string<uuid>
required

Body

application/json

Submit request for a validated import session.

ignore_errors
boolean
default:false

Response

Successful Response

Result returned after an import is submitted.

status
string
required
rows_submitted
integer
required
file_id
string<uuid>
processing_job_id
string<uuid>