Shopware icon

Shopware

Shopware

Actions778

Media Folder → Update Media Folder

AI-generated

Overview

This node operation updates an existing Media Folder in the Shopware system. It allows users to modify various attributes of a media folder such as its name, configuration, parent folder, children folders, media items, and other metadata. This operation is useful for managing media organization within Shopware, enabling automation of media folder updates in workflows.

Use Case Examples

  1. Updating the name and configuration of a media folder to reflect new organizational standards.
  2. Changing the parent folder of a media folder to restructure the media hierarchy.
  3. Adding or modifying custom fields and metadata for a media folder to enhance media management.

Properties

Name Meaning
Id Identifier for the media_folder, used to specify which media folder to update.
Response Data format for response. Empty if none is provided.
Use Parent Configuration Boolean flag to indicate whether to use the parent folder's configuration.
Configuration Id Identifier for the configuration to apply to the media folder.
Default Folder Id Identifier for the default folder associated with the media folder.
Parent Id Identifier for the parent media folder.
Child Count Number of child folders within the media folder.
Path Path of the media folder in the media hierarchy.
Name Name of the media folder.
Custom Fields Custom JSON fields for additional metadata.
Created At Creation timestamp of the media folder.
Updated At Last update timestamp of the media folder.
Parent JSON object representing the parent media folder and its related data.
Children JSON array representing child media folders and their related data.
Media JSON array representing media items contained in the media folder.
Default Folder JSON object representing the default folder and its related data.
Configuration JSON object representing the configuration details of the media folder.
Request Options Settings for request behavior such as batching, SSL issues, proxy, and timeout.

Output

JSON

  • id - Identifier of the updated media folder.
  • name - Name of the updated media folder.
  • path - Path of the updated media folder.
  • configurationId - Identifier of the configuration applied to the media folder.
  • parentId - Identifier of the parent media folder.
  • childCount - Number of child folders within the media folder.
  • customFields - Custom metadata fields associated with the media folder.
  • createdAt - Creation timestamp of the media folder.
  • updatedAt - Last update timestamp of the media folder.
  • parent - Detailed JSON object of the parent media folder and its related data.
  • children - Detailed JSON array of child media folders and their related data.
  • media - Detailed JSON array of media items contained in the media folder.
  • defaultFolder - Detailed JSON object of the default folder and its related data.
  • configuration - Detailed JSON object of the media folder's configuration.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure the 'Id' property is correctly set to the media folder you want to update; otherwise, the update will fail.
  • Verify that the JSON fields (parent, children, media, defaultFolder, configuration) are correctly formatted to avoid request errors.
  • Check API credentials and permissions to ensure the node can perform update operations on media folders.
  • If SSL issues occur, consider enabling the 'Ignore SSL Issues' option or verify the SSL certificate of the Shopware server.
  • Use the 'Timeout' and 'Batching' options to manage request performance and avoid timeouts or rate limits.

Discussion