Midiacode icon

Midiacode

Consume Midiacode API

Actions8

Content → Publish

AI-generated

Summary

Publish a content item in a workspace with optional status, notification, and change message.

Inputs

  • workspaceIdBody (required) — The ID of the workspace where the content resides.
  • statusPublish (required) — The publishing status of the content (draft, published, archived).
  • contentIdPublish (required) — The ID of the content to publish.
  • notification — Whether to send a notification after publishing.
  • changeMessage — Optional message describing the change.

Output shape

a single published content object

The response contains the updated content record including its ID, status, and any modified fields.

Examples

Example 1: Publish a new article to the 'Marketing' workspace

Resource=Content, Operation=Publish, workspaceIdBody=marketing_ws, contentIdPublish=123, statusPublish=pub, notification=true

Example 2: Update an existing piece of content and publish it with a custom change message

Resource=Content, Operation=Publish, workspaceIdBody=ops_ws, contentIdPublish=456, statusPublish=dra, notification=false, changeMessage=Minor edit before publishing

Example 3: Publish content with batching disabled

Resource=Content, Operation=Publish, workspaceIdBody=support_ws, contentIdPublish=789, statusPublish=pub, notification=true, requestOptions={batching: {batchSize:0, batchInterval:0}}

Discussion