Shopware icon

Shopware

Shopware

Actions778

Media Thumbnail → Create Media Thumbnail

AI-generated

Overview

This node operation creates a media thumbnail in the Shopware system. It is useful for scenarios where you need to generate or manage thumbnails for media assets, such as images or videos, within a Shopware e-commerce platform. For example, you might use this node to create thumbnails of product images to display on a storefront or in marketing materials.

Use Case Examples

  1. Creating a thumbnail for a newly uploaded product image to ensure consistent display size across the website.
  2. Generating thumbnails for media files to optimize loading times and improve user experience on the storefront.

Properties

Name Meaning
Response Data format for the response, either basic or detailed.
Id The unique identifier for the media thumbnail to be created.
Media Id The identifier of the media item for which the thumbnail is being created.
Width The width dimension of the thumbnail to be created.
Height The height dimension of the thumbnail to be created.
Url The URL of the media thumbnail, a runtime field not used as part of the criteria.
Path The path where the media thumbnail is stored or accessed.
Custom Fields Additional custom fields in JSON format to include with the media thumbnail.
Created At Timestamp indicating when the media thumbnail was created.
Updated At Timestamp indicating when the media thumbnail was last updated.
Media A JSON object representing the media details associated with the thumbnail.
Request Options Settings for request behavior such as batching, SSL handling, proxy, and timeout.

Output

JSON

  • id - The unique identifier of the created media thumbnail.
  • mediaId - The identifier of the media associated with the thumbnail.
  • width - The width of the created thumbnail.
  • height - The height of the created thumbnail.
  • url - The URL where the thumbnail can be accessed.
  • path - The storage or access path of the thumbnail.
  • customFields - Any custom fields included with the thumbnail.
  • createdAt - The creation timestamp of the thumbnail.
  • updatedAt - The last update timestamp of the thumbnail.
  • media - The detailed media object associated with the thumbnail.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (Id, Media Id, Width, Height) are provided and correctly formatted to avoid validation errors.
  • If the API returns authentication errors, verify that the Shopware Admin API credentials are correctly configured and have the necessary permissions.
  • Timeout errors can occur if the server is slow to respond; adjust the timeout setting in Request Options accordingly.
  • If SSL certificate validation fails and you trust the endpoint, enable the 'Ignore SSL Issues' option to bypass SSL errors.

Discussion