Shopware icon

Shopware

Shopware

Actions778

Media Thumbnail Size → Update Media Thumbnail Size

AI-generated

Overview

This node updates the properties of a Media Thumbnail Size in the Shopware system. It is useful for scenarios where you need to modify the dimensions or metadata of media thumbnails, such as adjusting the width and height of thumbnails used in a media library or content management system. For example, you can update the size of thumbnails to better fit a new design layout or optimize image loading times.

Use Case Examples

  1. Updating the width and height of a specific media thumbnail size by its identifier.
  2. Adding or modifying custom fields related to a media thumbnail size.
  3. Updating timestamps or media folder configurations associated with a media thumbnail size.

Properties

Name Meaning
Id Identifier for the media_thumbnail_size, used to specify which thumbnail size to update.
_response Data format for the response, allowing customization of the response format.
Width The new width value for the media thumbnail size.
Height The new height value for the media thumbnail size.
Custom Fields Custom JSON fields to add or update additional metadata for the media thumbnail size.
Created At Timestamp indicating when the media thumbnail size was created.
Updated At Timestamp indicating when the media thumbnail size was last updated.
Media Folder Configurations JSON configuration for media folders related to the media thumbnail size, allowing complex nested settings.

Output

JSON

  • id - The identifier of the updated media thumbnail size.
  • width - The updated width of the media thumbnail size.
  • height - The updated height of the media thumbnail size.
  • customFields - Any custom fields associated with the media thumbnail size.
  • createdAt - Creation timestamp of the media thumbnail size.
  • updatedAt - Last update timestamp of the media thumbnail size.
  • mediaFolderConfigurations - Configurations related to media folders for the thumbnail size.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure the 'Id' property is correctly set to the media thumbnail size you want to update; otherwise, the update will fail or affect the wrong record.
  • Verify that the 'Width' and 'Height' values are valid numbers and within acceptable ranges for thumbnail sizes.
  • If using custom fields or media folder configurations, ensure the JSON is correctly formatted to avoid parsing errors.
  • Check API credentials and network connectivity if the request fails due to authentication or connection issues.

Discussion