Shopware icon

Shopware

Shopware

Actions778

Media Default Folder → Create Media Default Folder

AI-generated

Overview

This node operation creates a new Media Default Folder in the Shopware system. It is useful for organizing media files by associating them with specific entities and folders, allowing better media management within the Shopware platform. For example, you can create a default folder for product images or theme media to keep media assets structured.

Use Case Examples

  1. Creating a default media folder for product images to streamline media management.
  2. Setting up a default folder for theme-related media to organize assets used in storefront themes.

Properties

Name Meaning
Response Specifies the data format for the response, either basic or detailed.
Id The unique identifier for the media default folder to be created.
Entity The entity to which the media default folder is associated.
Custom Fields Custom fields in JSON format to add additional metadata to the media default folder.
Created At Timestamp indicating when the media default folder was created.
Updated At Timestamp indicating when the media default folder was last updated.
Folder JSON object representing the folder structure and related media information.
Request Options Settings for request behavior such as batching, SSL handling, proxy, and timeout.

Output

JSON

  • id - The unique identifier of the created media default folder.
  • entity - The entity associated with the media default folder.
  • customFields - Custom metadata fields associated with the media default folder.
  • createdAt - Creation timestamp of the media default folder.
  • updatedAt - Last update timestamp of the media default folder.
  • folder - The folder structure and related media information in JSON format.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure that the 'Id' and 'Entity' fields are provided and valid, as they are required for creating the media default folder.
  • If the API returns an error, check the API credentials and the base URL configuration.
  • Verify that the JSON format for 'Custom Fields' and 'Folder' is correct to avoid parsing errors.
  • Timeouts or SSL issues can be resolved by adjusting the 'Request Options' such as timeout duration or allowing unauthorized certificates.

Discussion