Shopware icon

Shopware

Shopware

Actions778

Media Folder Configuration → Update Media Folder Configuration

AI-generated

Overview

This node operation updates the configuration of a media folder in the Shopware system. It allows users to modify various settings related to media folders, such as thumbnail creation, aspect ratio, thumbnail quality, privacy settings, associations, custom fields, timestamps, and detailed media folder and thumbnail size configurations. This operation is useful for managing how media is handled and displayed within the Shopware platform, ensuring media folders are configured according to specific requirements.

Use Case Examples

  1. Updating a media folder configuration to enable thumbnail creation and keep aspect ratio.
  2. Modifying the privacy setting of a media folder to make it private or public.
  3. Adjusting thumbnail quality and adding custom fields to a media folder configuration.

Properties

Name Meaning
Id Identifier for the media_folder_configuration, required to specify which configuration to update.
Response Data format for the response, used as a query parameter to specify the desired response format.
Create Thumbnails Boolean flag to enable or disable the creation of thumbnails for media in the folder.
Keep Aspect Ratio Boolean flag to maintain the aspect ratio of thumbnails when created.
Thumbnail Quality Numeric value to set the quality level of thumbnails created for media.
Private Boolean flag to set the media folder as private or public.
No Association Boolean flag to indicate if the media folder should have no associations.
Custom Fields JSON object to specify custom fields for the media folder configuration.
Created At Timestamp string indicating when the media folder configuration was created.
Updated At Timestamp string indicating when the media folder configuration was last updated.
Media Folders JSON object representing the detailed structure and contents of media folders to be configured.
Media Thumbnail Sizes JSON object representing the sizes of media thumbnails associated with the media folder configuration.
Request Options Collection of request options such as batching, SSL certificate validation, proxy settings, and timeout for the API request.

Output

JSON

  • id - Identifier of the updated media folder configuration.
  • createThumbnails - Indicates if thumbnail creation is enabled.
  • keepAspectRatio - Indicates if aspect ratio is maintained for thumbnails.
  • thumbnailQuality - Quality setting for thumbnails.
  • private - Privacy status of the media folder.
  • noAssociation - Indicates if the media folder has no associations.
  • customFields - Custom fields associated with the media folder configuration.
  • createdAt - Creation timestamp of the media folder configuration.
  • updatedAt - Last update timestamp of the media folder configuration.
  • mediaFolders - Detailed configuration of media folders.
  • mediaThumbnailSizes - Configuration of media thumbnail sizes.

Dependencies

  • An API key credential for Shopware Admin API authentication

Troubleshooting

  • Ensure the 'Id' property is correctly set to identify the media folder configuration to update; missing or incorrect Id will cause errors.
  • Verify that JSON fields like 'customFields', 'mediaFolders', and 'mediaThumbnailSizes' are properly formatted JSON strings to avoid parsing errors.
  • Check network and authentication settings, including API credentials and proxy configurations, to ensure successful API requests.
  • If SSL issues occur, consider enabling the 'Ignore SSL Issues' option, but be aware of security implications.

Discussion