Include or exclude products in bulk
set_products_includedBulk include or exclude products (max 1000 ids per call), from every feed (omit feedId) or from one feed. A store-wide exclusion holds in every feed until it is lifted store-wide. This tool previews by default: called without confirm, it returns the proposed change and applies NOTHING. Show the merchant the proposal, then call again with confirm: true to apply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feedId | No | Feed id from list_feeds. Omit to include or exclude across every feed. | |
| confirm | No | Omit or false to preview the count. True applies the change. | |
| included | Yes | True includes the products, false excludes them | |
| productIds | Yes | Product ids from list_products, up to 1000 per call |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feed | No | The feed's id and name, on a feed-scoped call | |
| note | No | Plain-language result or next step, safe to read out to the merchant. | |
| scope | No | Which override layer the call addressed: one feed's row, or the row every feed inherits | |
| errors | No | Reasons the save was refused | |
| applied | No | True when the change was saved | |
| preview | No | True when this call only proposed the change | |
| included | No | The include state being set | |
| matchedCount | No | How many of the supplied ids exist on this store | |
| productCount | No | Ids supplied, or products written on confirm | |
| validationErrors | No | Problems that must be fixed before confirming | |
| stillExcludedProductIds | No | Products the other layer still excludes. Inclusion is ANDed across layers, so this call cannot re-include them. |