Create paragraph media
shop_create_paragraph_mediaCreate a media object for a paragraph. For PHOTO: pass media_type=PHOTO and image_file. For EMBED: pass media_type=EMBED and content. Guidance: Create a media object for a PHOTO or EMBED paragraph. PHOTO: pass image_file (local path or URL source). EMBED: pass... | context: product_id, paragraph_id
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | Required for EMBED. Embed content. | |
| image_file | No | Required for PHOTO. Image payload. Accepts: (1) a data URI 'data:image/png;base64,...', (2) a raw base64-encoded string of the image bytes, or (3) a public http(s) URL. Do NOT pass a local filesystem path. | |
| media_type | Yes | Required. PHOTO or EMBED. | |
| product_id | Yes | Numeric id of the product the paragraph belongs to. | |
| focal_point | No | Image crop focal point, format 40x50. | |
| paragraph_id | Yes | Id of the description paragraph to attach the media to (from shop_list_paragraphs). |