Skip to main content

Bulk Import Product Rules

POST 

/api/admin/portal/catalogs/:catalog/rules/bulk

Bulk-add product include/exclude rules. Products can be supplied by SKU and/or by product id; at least one of the two is required. Each SKU is matched to a product; matched products that don't already carry a rule of this type are added. Returns a summary of how many rules were added, how many were skipped as duplicates, and which SKUs matched no product.

Body fields:

  • rule_type (required): one of include_product, exclude_product. Category / brand rules are not supported here.
  • skus (required without product_ids): array of up to 5,000 SKU strings.
  • product_ids (required without skus): array of up to 5,000 product ids.

Request

Responses

Created

Response Headers
    Content-Type