POST
/v1/import/validation/{importDefinitionId}
const url = 'https://api.zentail.com/v1/import/validation/example';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.zentail.com/v1/import/validation/example \ --header 'Authorization: Bearer <token>'This creates a validation for the given import definition. It queues it to be run for the given CSV file. GET /import/validation/results can be used to check the progress and current results.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”importDefinitionId
required
string
The import definition ID is an ID that is unique for every definition of a report type and consists of the import type, the integration ID if applicable, and the template ID if applicable. The three parts are joined by semicolons: <type>:<integration ID>:<template ID> (e.g. “TemplatelessProduct::”, “TemplatedProduct::35”, “FullProductData:4:”, “Kits::”)
Responses
Section titled “ Responses ”Success
Media type*/*
object
import_validation_id
number
supplied_headers
Array<string>
actual_headers
Array<string>
first_10_rows
Array<Array<string>>
Bad Request
Media type*/*
object
errorCode
number
Example
400errorMessages
Array<string>
referenceId
string format: uuid
Permission Denied
Media type*/*
object
errorCode
number
Example
403errorMessages
Array<string>
referenceId
string format: uuid
Not Found
Media type*/*
object
errorCode
number
Example
404errorMessages
Array<string>
referenceId
string format: uuid
Zentail Error
Media type*/*
object
errorCode
number
Example
500errorMessages
Array<string>
referenceId
string format: uuid
errorMessage
string
Zentail Error
Media type*/*
object
errorCode
number
Example
503errorMessages
Array<string>
referenceId
string format: uuid