catalog.collection.setProducts

Wholesale-replace a collection's product list (order = array order = manual sort).

Payload

fieldtyperequirednotes
idstring (/^col_[a-zA-Z0-9]{1,32}$/)yes
productIdsarray<string (/^prd_[a-zA-Z0-9]{1,32}$/)> (≤500)yes

JSON Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^col_[a-zA-Z0-9]{1,32}$"
    },
    "productIds": {
      "maxItems": 500,
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^prd_[a-zA-Z0-9]{1,32}$"
      }
    }
  },
  "required": [
    "id",
    "productIds"
  ],
  "additionalProperties": false
}
Generated from the live platform registries at build time — reference pages cannot go stale. Markdown variant: /reference/commands/catalog.collection.setProducts.md