syncpen_publish
Publish a document to WordPress, Ghost, or Sanity. Auto-selects the CMS connection when only one is active for the target.
Instructions
Publish a SyncPen document to a connected CMS (WordPress, Ghost, or Sanity). Auto-selects the connection when only one is active for the target; otherwise pass connectionId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional: override the post title (defaults to the document's first heading, then its title). | |
| status | No | Optional: post status. WordPress: 'draft' or 'publish'. Ghost/Sanity: 'draft' or 'published'. Defaults to published. | |
| target | Yes | Where to publish: 'wordpress', 'ghost', or 'sanity' | |
| postType | No | Optional: 'post' or 'page' (WordPress and Ghost only). | |
| documentId | Yes | The ID of the document to publish | |
| connectionId | No | Optional: explicit CMS connection ID. Omit to auto-select the single active connection for the target. |