Content → Update
AI-generatedSummary
Update an existing content item in the Midiacode API
Inputs
- title (required) — Title of the content to update
- workspaceIdBody (required) — Identifier of the workspace containing the content
- priority — Priority value for the content (optional)
- gs1QrCodeEnabled — Enable GS1 QR code generation for the content (optional)
- gs1Ai — GS1 Application Identifier to use (default '01') (optional)
- productEan13 — EAN13 barcode for the product (optional)
- productVariant — Product variant identifier (optional)
- contentId (required) — Unique identifier of the content item to update
Output shape
a single updated content object
Returns the updated content resource; updated fields are included, optional fields may be omitted.
Examples
Example 1: Update a content item to change its title and priority
title: 'Updated Title'; priority: 2; contentId: '12345'
Example 2: Enable GS1 QR code and set EAN13 for a content item
gs1QrCodeEnabled: true; productEan13: '9781234567890'; contentId: '12345'