Create an Import
/v1/importsImport a catalog file as PDPs.
Request
Authorizationheader · requiredBearer <Extralt API key>Idempotency-Keyheader · string · requiredUnique key for safely retrying this request
store_host query · string · requiredThe Store every record belongs to, as a website or hostname, with
country. The Import adds the Store when the organization has none, and is refused while it has an unfinished Run or Import. Records naming another host fail the Import.bodyapplication/octet-stream · requiredfile_name query · stringcountryquery · stringAn assigned ISO 3166-1 alpha-2 country code, in its canonical upper case.
pattern ^[A-Z]{2}$languagequery · stringAn ISO 639-1 language code, in its canonical lower case.
pattern ^[a-z]{2}$
Response
Import accepted
created_at string- date-time
error_count integerRecords that could not be read.
int64 · ≥ 0finishedbooleanWhether the Import has reached a final status.
idstringnamestringnew_pdps integerOf those, the organization's first PDP of a product, charged as new.
int64 · ≥ 0pdpsintegerPDPs published and billed.
int64 · ≥ 0statusImportStatus- one of pending · running · materializing · completed · validation_failed · failed
status_reason string · nullablestore_id stringThe Store the Import reads into.
updated_at string · nullable- date-time
Errors
Errors that read the same on every endpoint are in Error codes.
- 400
Invalid import
- 402
Active subscription required
- 409
The Store has an unfinished Run or Import, or the idempotency key was used for a different request
- 413
The request body exceeds the API limit