Create or change content on a connected site
content_saveCreate or change content on a connected site. Without id it creates (as a draft unless status says otherwise); with id it changes only the fields you pass. Fields depend on the kind of site and of item: connected_sites lists them (title, content, slug and status everywhere; on Shopify also seo_title and seo_description, and for products vendor, tags and add_image; prices, stock and variants are never touched). What the site's mode allows: drafts only (the default) lets you create and edit drafts and nothing visitors see; publish too lets you publish and edit live content. What a change replaced is kept 90 days: content_undo puts it back. Never publish or change live content unless the user asked for exactly that; a draft's preview link is in the answer for them to check.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The item to change. Leave out to create. | |
| site | No | The connected site, by its name or address (see connected_sites). Optional when one site is connected. | |
| type | No | Default post. | |
| fields | Yes |