Swagger: Publish Portal Product
swagger_publish_portal_productPublish a product's content to make it live or as a preview for portal visitors. Optionally provide a table of contents ID to get a page-specific URL.
Instructions
Publish a product's content to make it live or as preview. This endpoint publishes the current content of a product, making it visible to portal visitors. Use preview mode to test before going live. Optionally provide tableOfContentsId to get a page-specific URL. Returns publication status, a live or preview URL (null if URL building fails), product and portal metadata, and an optional warning when metadata/URL building failed — a warning does NOT mean the publish failed.
Toolset: Products
Parameters:
productId (string) required: Product UUID or identifier in the format 'portal-subdomain:product-slug' - unique identifier for the product
tableOfContentsId (string): Optional table of contents UUID, or identifier in the format 'portal-subdomain:product-slug:section-slug:table-of-contents-slug'. When provided, publishPortalProduct uses it to resolve the published URL path for the returned preview/live link.
preview (boolean): Whether to publish as preview (true) or live (false). Preview allows testing before going live. Defaults to false (live publication) (default: false)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preview | No | Whether to publish as preview (true) or live (false). Preview allows testing before going live. Defaults to false (live publication) | |
| productId | Yes | Product UUID or identifier in the format 'portal-subdomain:product-slug' - unique identifier for the product | |
| tableOfContentsId | No | Optional table of contents UUID, or identifier in the format 'portal-subdomain:product-slug:section-slug:table-of-contents-slug'. When provided, publishPortalProduct uses it to resolve the published URL path for the returned preview/live link. |