microcms_create_content_published
Create and publish new content in microCMS with specified field formats. Use endpoint name, structured data (JSON), and optional content ID. Handles text, HTML, images, dates, selects, and content references.
Instructions
Create new content in microCMS and publish it immediately. Field type specifications: Image fields require URLs from the same microCMS service (e.g., "https://images.microcms-assets.io/assets/xxx/yyy/sample.png"), only the URL string is required. Multiple image fields use array format. Rich editor fields expect HTML strings. Date fields use ISO 8601 format. Select fields use arrays. Content reference fields use contentId strings or arrays for multiple references.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | Content data to create (JSON object). Field formats: text="string", richEditor="<h1>HTML</h1>", image="https://images.microcms-assets.io/...", multipleImages=["url1","url2"], date="2020-04-23T14:32:38.163Z", select=["option1","option2"], contentReference="contentId" or ["id1","id2"]. | |
contentId | No | Specific content ID to assign | |
endpoint | Yes | Content type name (e.g., "blogs", "news") |