Publish an image or video onto a Shopify product
publish_to_shopify_productAttach a finished image or video to a Shopify product listing as product media. Pass the product ID and a public HTTPS media URL to publish it, then read back Shopify's processing status.
Instructions
Attach a finished IMAGE or VIDEO to one of the merchant's Shopify product listings, as product media. Pass productId (from list_shopify_products, the gid://shopify/Product/… form) and a PUBLIC https mediaUrl, which is what every Hermoso render returns. Whether it is a video is read from the file (.mp4 / .mov / .webm, or the link's content type); pass kind to say so outright. An image is fetched by Shopify directly; a video is uploaded to Shopify for you (MP4, MOV or WEBM, up to Shopify's 1 GB and 10-minute product-video limits; a file over a limit is refused by name, never cut). Shopify processes media asynchronously: the reply is the status read back from Shopify, and READY means it is live on the listing while PROCESSING means it will appear when Shopify finishes. That is success, not a failure. Only works for accounts created by installing Hermoso from the Shopify App Store. Free: the render was already paid for.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | alt text for accessibility and SEO; defaults to a generic credit | |
| kind | No | only when the link does not say (no file extension and no content type) | |
| imageUrl | No | older name for mediaUrl; still accepted | |
| mediaUrl | No | any public https image or video URL: a Hermoso render works, and so does ANY file of your own brought in with upload_file | |
| productId | Yes | gid://shopify/Product/… from list_shopify_products |