Shopware icon

Shopware

Shopware

Actions778

Media Folder → Create Media Folder

AI-generated

Overview

This node operation creates a new Media Folder in the Shopware system. It is useful for organizing media assets by grouping them into folders with specific configurations and hierarchical relationships. For example, you can create a media folder with a parent folder, assign configuration settings, and define child folders and media items within it.

Use Case Examples

  1. Creating a new media folder with a specific configuration ID and name.
  2. Creating a nested media folder by specifying a parent folder ID.
  3. Adding custom fields and media items to a new media folder during creation.

Properties

Name Meaning
Response Data format for response, either basic or detailed.
Id Unique identifier for the media folder.
Use Parent Configuration Flag 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 of the parent media folder.
Child Count Number of child folders within this media folder.
Path Path of the media folder in the folder hierarchy.
Name Name of the media folder.
Custom Fields Custom JSON fields for additional data.
Created At Creation timestamp of the media folder.
Updated At Last update timestamp of the media folder.
Parent JSON object representing the parent folder and its related data.
Children JSON array representing child folders and their related data.
Media JSON array representing media items associated with the folder.
Default Folder JSON object representing the default folder and its related data.
Configuration JSON object representing the configuration details for the media folder.

Output

JSON

  • id - Unique identifier of the created media folder.
  • name - Name of the created media folder.
  • configurationId - Configuration ID applied to the media folder.
  • parentId - Parent folder ID if the folder is nested.
  • path - Path of the media folder in the hierarchy.
  • childCount - Number of child folders within this media folder.
  • createdAt - Timestamp when the media folder was created.
  • updatedAt - Timestamp when the media folder was last updated.
  • customFields - Custom fields associated with the media folder.
  • media - Media items associated with the folder.
  • children - Child folders within this media folder.
  • defaultFolder - Default folder details associated with the media folder.
  • configuration - Configuration details applied to the media folder.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields like 'Id', 'Configuration Id', and 'Name' are provided to avoid validation errors.
  • If the API returns authentication errors, verify the Shopware Admin API credentials are correctly configured.
  • For JSON fields like 'customFields', 'parent', 'children', 'media', 'defaultFolder', and 'configuration', ensure the JSON is well-formed to prevent parsing errors.

Discussion