Midiacode icon

Midiacode

Consume Midiacode API

Actions8

Content → Create

AI-generated

Summary

Create a new content item in the specified workspace.

Inputs

  • title (required) — Title of the content item.
  • contentTypeSlug (required) — Content type slug (e.g., facebook, youtube).
  • workspaceIdBody (required) — The ID of the workspace.
  • priority — Priority of the content item.
  • gs1QrCodeEnabled — Whether GS1 QR code is enabled.
  • gs1Ai — GS1 AI identifier.
  • productEan13 — Product EAN13 code.
  • productVariant — Product variant identifier.
  • requestOptions — Additional request configuration options.

Output shape

a single created content record

Returns the full created content object; optional fields may be omitted, and errors are wrapped in a standard error envelope.

Examples

Example 1: Create a Facebook post

title='My Vacation', contentTypeSlug='facebook', workspaceIdBody='12345', priority=1

Example 2: Create a video with GS1 QR code

title='Demo Video', contentTypeSlug='video', workspaceIdBody='6789', gs1QrCodeEnabled=true, gs1Ai='01', productEan13='9781234567890'

Example 3: Create a URL content using defaults

title='Link', contentTypeSlug='url', workspaceIdBody='11111'

Discussion