publish-product
Publishes a Shopify product to one or more sales channels using publication IDs or exact names, then returns each channel's product state and any errors.
Instructions
Publish a product to one or more sales channels, by publicationIds or exact publicationNames (see get-publications). Returns the product's state on every channel afterwards, plus userErrors.
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": {
"productId": "<productId>"
},
"name": "publish-product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| productId | Yes | Shopify product GID (e.g. gid://shopify/Product/123) | |
| publicationIds | No | Publication GIDs (from get-publications). Provide this OR publicationNames. | |
| publicationNames | No | Sales channel names exactly as returned by get-publications, e.g. ["Online Store", "Point of Sale"]. Provide this OR publicationIds. |