ProductMedia
Was this helpful?
Was this helpful?
ProductMedia
Retrieve the data record for the given product media.
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a Product.
^[A-Za-z0-9-_]+
Reference to a product media record.
Example response
Delete a product media record.
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a Product.
^[A-Za-z0-9-_]+
Reference to a product media record.
No Content
No Content
List media (images, videos) for a given product.
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a Product.
^[A-Za-z0-9-_]+
Reference to a specific page in a result set.
The number of items per page in a result set.
Example response
When you already have the images that you want to use, add them as the URL. Note that the URLs must be publicly accessible.
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a Product.
^[A-Za-z0-9-_]+
^[A-Za-z0-9-_]*
Example response
Update a product media record.
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a Product.
^[A-Za-z0-9-_]+
Reference to a product media record.
Example response
Upload a new image or video. We accept two kinds of values in the file field, either
base64
a Base64 encoded string of the file content, or
URL
a URL of the file from where to download the content (make sure that the URL is accessible).
Filename is the name with which the file will be uploaded, e.g. "new-image.jpg".
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a Product.
^[A-Za-z0-9-_]+
The file content as base64 or source URL.
^[A-Za-z0-9-_]+
Example response
Set all the media items for a product in one go. The payload is an array refelecting all the media on the given product. In addition to adding the new entries, this will also remove any exising entries that are not in the payload. So an empty array will delete all the product media on the product.
If no media is set as cover image, the first media added will be used. Only one image can be set as the cover image.
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a Product.
^[A-Za-z0-9-_]+
No Content
No Content