Shopware icon

Shopware

Shopware

Actions778

Product Media → Create Product Media

AI-generated

Overview

This node operation allows creating a new Product Media entry in the Shopware system. It is useful for adding media assets such as images or videos to products, enhancing product listings with visual content. For example, you can use this node to upload a new product image or associate a media file with a specific product version.

Use Case Examples

  1. Adding a new image to a product in an e-commerce store.
  2. Associating a video media file with a product for better customer engagement.

Properties

Name Meaning
Response Data format for response, either basic or detailed.
Id Unique identifier for the product media entry (required).
Version Id Version identifier for the product media entry.
Product Id Identifier of the product to which the media is associated (required).
Product Version Id Version identifier of the product.
Media Id Identifier of the media asset to associate with the product (required).
Position Position or order of the media in the product media list.
Custom Fields Custom fields in JSON format for additional data.
Created At Creation timestamp of the product media entry.
Updated At Last update timestamp of the product media entry.
Product JSON object representing the product details associated with the media.
Media JSON object representing the media details to associate with the product.
Cover Products JSON array representing cover products related to the media.

Output

JSON

  • id - Unique identifier of the created product media entry.
  • productId - Identifier of the product associated with the media.
  • mediaId - Identifier of the media asset associated with the product.
  • position - Position of the media in the product media list.
  • createdAt - Timestamp when the product media entry was created.
  • updatedAt - Timestamp when the product media entry was last updated.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (Id, Product Id, Media Id) are provided to avoid validation errors.
  • Check API credentials and base URL configuration if authentication errors occur.
  • Verify the media and product IDs exist in the Shopware system to prevent not found errors.
  • If SSL issues occur, consider enabling the 'Ignore SSL Issues' option in request settings.

Discussion