Shopware icon

Shopware

Shopware

Actions778

Media Thumbnail Size → Create Media Thumbnail Size

AI-generated

Overview

This node operation creates a new Media Thumbnail Size in the Shopware system. It is useful for managing media assets by defining custom thumbnail sizes, which can be applied to media folders and configurations. For example, a user can specify the width and height of thumbnails for images used in a storefront or CMS, ensuring consistent media presentation.

Use Case Examples

  1. Creating a thumbnail size with specific width and height for product images.
  2. Defining custom fields and media folder configurations to tailor media handling in Shopware.

Properties

Name Meaning
Response Data format for the response, either basic or detailed.
Id Unique identifier for the media thumbnail size.
Width Width of the media thumbnail size in pixels.
Height Height of the media thumbnail size in pixels.
Custom Fields Additional custom fields in JSON format to extend the media thumbnail size data.
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 array defining media folder configurations associated with the thumbnail size.
Request Options Settings for request behavior such as batching, SSL certificate validation, proxy, and timeout.

Output

JSON

  • id - The unique identifier of the created media thumbnail size.
  • width - The width of the created media thumbnail size.
  • height - The height of the created 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 this thumbnail size.

Dependencies

  • Requires Shopware API credentials for authentication.

Troubleshooting

  • Ensure all required fields (Id, Width, Height) are provided to avoid validation errors.
  • Check API credentials and base URL configuration if authentication fails.
  • If the response is empty or unexpected, verify the _response parameter and API endpoint path.

Discussion