ImportMode
:
String
(Required)
Import mode. Possible values are MERGE, UPDATE, DELETE, REPLACE.
ImportConfiguration
:
Object
(Optional)
Use this to specify additional import configuration. This can be an object literal expression such as {deleteCatalog:true} or a Map object containing key="deleteCatalog" and value=Boolean(true), etc.
Possible configurations:
key=deleteCatalog; value=true | false. If set to true, the catalog will be deleted from the system before importing data from the import file. If not specified or set to false, then the catalog will not be deleted before importing the data.
key=importAttributeDefinitions; value=true | false. If set to true, product-attribute-definitions defined in catalog import file are imported. If not specified or set to false, the catalog import file must not contain product-attribute-definitions, otherwise a data error is logged.
key=replaceCustomAttributes; value=true | false. This setting is only relevant for import modes MERGE and UPDATE. If set to true, existing custom attributes of updated products will be replaced with attributes contained in the import file. If not specified or set to false, custom attributes contained in the file will be merged with the attributes already contained in the database.
key=replaceCustomAttributesExclusions; value=attrID1, attrID2, ... If specified, import of product custom attributes in REPLACE, MERGE and UPDATE mode will not replace the listed attributes.