Publish or unpublish
set_publishedPublishes or unpublishes one product or article, so it shows on the live site or not. Returns a change_id that undo_change takes.
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": {
"site_id": "<site_id>",
"type": "<type>",
"id": "<id>",
"published": "<published>"
},
"name": "set_published"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The record id from list_content. | |
| type | Yes | ||
| site_id | Yes | The site id from list_sites. | |
| published | Yes | true to publish, false to unpublish. |