snap_create_product_set
Create a product set in a Snapchat catalog by defining filter rules to group products for catalog ads; preview the request, then confirm with the approval token to apply.
Instructions
Create a product set in a catalog: a group of products chosen by a filter, for catalog ads. The filter uses Snap's rules, e.g. {"AVAILABILITY": {"EQ": "IN_STOCK"}} or {"AND": [{"PRICE_AMOUNT": {"GT": "15.50"}}, {"BRAND": {"IS_ANY": ["a", "b"]}}]}. Each attribute once, one AND/OR, up to 10 rules; ID lists up to 1000, other lists up to 15. At most 50 sets per catalog. Delivers nothing by itself. Previews unless confirm=true. Two steps: confirm=false returns a preview and an approval_token; to apply, repeat the same arguments with confirm=true and that approval_token.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"catalog_id": "<catalog_id>",
"name": "<name>",
"filter": "<filter>"
},
"name": "snap_create_product_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| filter | Yes | Snap product set filter | |
| confirm | No | false = preview only (nothing sent). true = apply; needs approval_token from the preview. | |
| catalog_id | Yes | ||
| approval_token | No | The approval_token returned by the preview of this exact request. Required with confirm=true. |