Shopware icon

Shopware

Shopware

Actions778

Media Thumbnail → Update Media Thumbnail

AI-generated

Overview

This node operation updates an existing media thumbnail in the Shopware system. It is useful for scenarios where you need to modify the properties of a media thumbnail such as its dimensions, associated media, or metadata. For example, you might update the width and height of a thumbnail or change its linked media ID to reflect new media content.

Use Case Examples

  1. Updating the width and height of a media thumbnail to optimize display on different devices.
  2. Changing the media ID associated with a thumbnail to update the image it represents.

Properties

Name Meaning
Id Identifier for the media_thumbnail to update, required to specify which thumbnail to modify.
Response Data format for the response; can be left empty if no specific format is required.
Media Id Identifier of the media associated with the thumbnail, required for linking the thumbnail to the correct media.
Width Width of the media thumbnail in pixels, required to define the thumbnail's size.
Height Height of the media thumbnail in pixels, required to define the thumbnail's size.
Url URL of the media thumbnail; a runtime field that cannot be used as part of the update criteria.
Path Path to the media thumbnail resource.
Custom Fields Custom JSON fields for additional metadata or properties related to the media thumbnail.
Created At Timestamp of when the media thumbnail was created.
Updated At Timestamp of the last update to the media thumbnail.
Media JSON object representing the media details associated with the thumbnail, allowing complex media metadata to be updated.

Output

JSON

  • id - The unique identifier of the updated media thumbnail.
  • mediaId - The identifier of the media associated with the thumbnail.
  • width - The width of the updated media thumbnail.
  • height - The height of the updated media thumbnail.
  • url - The URL of the updated media thumbnail.
  • path - The path of the updated media thumbnail.
  • customFields - Custom fields associated with the media thumbnail.
  • createdAt - Creation timestamp of the media thumbnail.
  • updatedAt - Last update timestamp of the media thumbnail.
  • media - Detailed media information linked to the thumbnail.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure the 'Id' property is correctly set to the media thumbnail you want to update; otherwise, the update will fail.
  • Verify that required fields such as 'Media Id', 'Width', and 'Height' are provided and valid to avoid validation errors.
  • If the API returns SSL certificate errors, consider enabling the 'Ignore SSL Issues' option if you trust the endpoint.
  • Check the timeout and proxy settings if the request to the Shopware API is slow or fails to connect.

Discussion