Skip to main content

categoryCsvImport

Import categories from a CSV file with validation and bulk processing.

Each row in the CSV is treated as a single category. Existing categories are matched by internal identifier or by external source identifier, based on which fields the row contains; rows that do not match are created.

Possible errors:

  • CATEGORY_BULK_OPERATION_FAILED: The bulk import could not be applied to the catalogue.
  • SCHEMA_VALIDATION: One or more rows or mappings failed validation.

AUTH: Role=[product.OWNER]

categoryCsvImport(
input: CategoryCsvInput!
): CsvImportResponse!

Arguments

categoryCsvImport.input ● CategoryCsvInput! non-null input

CSV file and column-to-field mappings.

The mappings tell the importer how each CSV column maps to a category field.

Type

CsvImportResponse object