Actions778
- Acl Role Actions
- App Actions
- App Action Button Actions
- App Administration Snippet Actions
- App Cms Block Actions
- App Flow Action Actions
- App Flow Event Actions
- App Payment Method Actions
- App Script Condition Actions
- App Shipping Method Actions
- App Template Actions
- Category Actions
- Cms Block Actions
- Cms Page Actions
- Cms Section Actions
- Cms Slot Actions
- Country Actions
- Country State Actions
- Currency Actions
- Currency Country Rounding Actions
- Custom Entity Actions
- Custom Field Actions
- Custom Field Set Actions
- Custom Field Set Relation Actions
- Customer Actions
- Customer Address Actions
- Customer Group Actions
- Customer Recovery Actions
- Customer Wishlist Actions
- Customer Wishlist Product Actions
- Delivery Time Actions
- Document Actions
- Document Base Config Actions
- Document Base Config Sales Channel Actions
- Document Type Actions
- Flow Actions
- Flow Sequence Actions
- Flow Template Actions
- Import Export File Actions
- Import Export Log Actions
- Import Export Profile Actions
- Integration Actions
- Landing Page Actions
- Language Actions
- Locale Actions
- Log Entry Actions
- Mail Header Footer Actions
- Mail Template Actions
- Mail Template Type Actions
- Main Category Actions
- Media Actions
- Media Default Folder Actions
- Media Folder Actions
- Media Folder Configuration Actions
- Media Thumbnail Actions
- Media Thumbnail Size Actions
- Newsletter Recipient Actions
- Notification Actions
- Number Range Actions
- Number Range Sales Channel Actions
- Number Range State Actions
- Number Range Type Actions
- Order Actions
- Order Customer Actions
- Order Delivery Actions
- Order Delivery Position Actions
- Order Line Item Actions
- Order Line Item Download Actions
- Order Transaction Actions
- Order Transaction Capture Actions
- Order Transaction Capture Refund Actions
- Order Transaction Capture Refund Position Actions
- Payment Method Actions
- Plugin Actions
- Product Actions
- Product Configurator Setting Actions
- Product Cross Selling Actions
- Product Cross Selling Assigned Products Actions
- Product Download Actions
- Product Export Actions
- Product Feature Set Actions
- Product Keyword Dictionary Actions
- Product Manufacturer Actions
- Product Media Actions
- Product Price Actions
- Product Review Actions
- Product Search Config Actions
- Product Search Config Field Actions
- Product Search Keyword Actions
- Product Sorting Actions
- Product Stream Actions
- Product Stream Filter Actions
- Product Visibility Actions
- Promotion Actions
- Promotion Discount Actions
- Promotion Discount Prices Actions
- Promotion Individual Code Actions
- Promotion Sales Channel Actions
- Promotion Setgroup Actions
- Property Group Actions
- Property Group Option Actions
- Rule Actions
- Rule Condition Actions
- Sales Channel Actions
- Sales Channel Analytics Actions
- Sales Channel Domain Actions
- Sales Channel Type Actions
- Salutation Actions
- Scheduled Task Actions
- State Machine Transition Actions
- System Config Actions
- Tag Actions
- Tax Actions
- Tax Provider Actions
- Tax Rule Actions
- Tax Rule Type Actions
- Theme Actions
- Unit Actions
- User Actions
- User Access Key Actions
- User Config Actions
- User Recovery Actions
- Webhook Actions
- Webhook Event Log Actions
- System Info Health Check Actions
- Bulk Operations Actions
- Document Management Actions
- Asset Management Actions
- Mail Operations Actions
- System Operations Actions
- Customer Impersonation Actions
- Order Management Actions
- Order Address Actions
- Authorization Authentication Actions
Media → Create Media
AI-generatedOverview
This node operation allows creating a media entity in the Shopware system. It supports specifying detailed media attributes such as ID, user ID, media folder ID, MIME type, file extension, upload time, file name, file size, metadata, media type, configuration, alt text, title, URL, path, privacy settings, custom fields, timestamps, translations, and various related entities like tags, thumbnails, user details, categories, product manufacturers, product media, downloads, order line item downloads, avatar users, media folder details, property group options, mail template media, document base configs, shipping methods, payment methods, product configurator settings, order line items, CMS blocks, CMS sections, CMS pages, documents, app payment methods, and app shipping methods. This operation is useful for integrating and managing media assets within Shopware, enabling automation of media creation with rich metadata and associations.
Use Case Examples
- Uploading a new product image with detailed metadata and associating it with specific categories and tags.
- Creating a media entry for a user-uploaded document with custom fields and privacy settings.
- Automating the creation of media assets linked to CMS pages and blocks for dynamic content management.
Properties
| Name | Meaning |
|---|---|
| Response | Data format for response. Empty if none is provided. |
| Id | Unique identifier for the media entity. |
| User Id | Identifier of the user associated with the media. |
| Media Folder Id | Identifier of the media folder where the media is stored. |
| Mime Type | MIME type of the media file. |
| File Extension | File extension of the media file. |
| Uploaded At | Timestamp when the media was uploaded. |
| File Name | Name of the media file. |
| File Size | Size of the media file in bytes. |
| Meta Data | Additional metadata for the media in JSON format. |
| Media Type | Type of the media in JSON format. |
| Config | Configuration settings for the media in JSON format. |
| Alt | Alternative text for the media. |
| Title | Title of the media. |
| Url | URL of the media. Runtime field, cannot be used as part of the criteria. |
| Path | Path of the media file. |
| Has File | Indicates if the media has an associated file. Runtime field, cannot be used as part of the criteria. |
| Private | Indicates if the media is private. |
| Custom Fields | Custom fields for the media in JSON format. |
| Created At | Timestamp when the media was created. |
| Updated At | Timestamp when the media was last updated. |
| Translated | Translation data for the media in JSON format. |
| Extensions | Extensions data for the media in JSON format. |
| Tags | Tags associated with the media in JSON format. |
| Thumbnails | Thumbnail images associated with the media in JSON format. |
| User | User details associated with the media in JSON format. |
| Categories | Categories associated with the media in JSON format. |
| Product Manufacturers | Product manufacturers associated with the media in JSON format. |
| Product Media | Product media associated with the media in JSON format. |
| Product Downloads | Product downloads associated with the media in JSON format. |
| Order Line Item Downloads | Order line item downloads associated with the media in JSON format. |
| Avatar Users | Avatar users associated with the media in JSON format. |
| Media Folder | Media folder details associated with the media in JSON format. |
| Property Group Options | Property group options associated with the media in JSON format. |
| Mail Template Media | Mail template media associated with the media in JSON format. |
| Document Base Configs | Document base configurations associated with the media in JSON format. |
| Shipping Methods | Shipping methods associated with the media in JSON format. |
| Payment Methods | Payment methods associated with the media in JSON format. |
| Product Configurator Settings | Product configurator settings associated with the media in JSON format. |
| Order Line Items | Order line items associated with the media in JSON format. |
| Cms Blocks | CMS blocks associated with the media in JSON format. |
| Cms Sections | CMS sections associated with the media in JSON format. |
| Cms Pages | CMS pages associated with the media in JSON format. |
| Documents | Documents associated with the media in JSON format. |
| App Payment Methods | App payment methods associated with the media in JSON format. |
| App Shipping Methods | App shipping methods associated with the media in JSON format. |
Output
JSON
id- Unique identifier of the created media entityuserId- Identifier of the user associated with the mediamediaFolderId- Identifier of the media folder where the media is storedmimeType- MIME type of the media filefileExtension- File extension of the media fileuploadedAt- Timestamp when the media was uploadedfileName- Name of the media filefileSize- Size of the media file in bytesmetaData- Additional metadata for the mediamediaType- Type of the mediaconfig- Configuration settings for the mediaalt- Alternative text for the mediatitle- Title of the mediaurl- URL of the mediapath- Path of the media filehasFile- Indicates if the media has an associated fileprivate- Indicates if the media is privatecustomFields- Custom fields for the mediacreatedAt- Timestamp when the media was createdupdatedAt- Timestamp when the media was last updatedtranslated- Translation data for the mediaextensions- Extensions data for the mediatags- Tags associated with the mediathumbnails- Thumbnail images associated with the mediauser- User details associated with the mediacategories- Categories associated with the mediaproductManufacturers- Product manufacturers associated with the mediaproductMedia- Product media associated with the mediaproductDownloads- Product downloads associated with the mediaorderLineItemDownloads- Order line item downloads associated with the mediaavatarUsers- Avatar users associated with the mediamediaFolder- Media folder details associated with the mediapropertyGroupOptions- Property group options associated with the mediamailTemplateMedia- Mail template media associated with the mediadocumentBaseConfigs- Document base configurations associated with the mediashippingMethods- Shipping methods associated with the mediapaymentMethods- Payment methods associated with the mediaproductConfiguratorSettings- Product configurator settings associated with the mediaorderLineItems- Order line items associated with the mediacmsBlocks- CMS blocks associated with the mediacmsSections- CMS sections associated with the mediacmsPages- CMS pages associated with the mediadocuments- Documents associated with the mediaappPaymentMethods- App payment methods associated with the mediaappShippingMethods- App shipping methods associated with the media
Troubleshooting
- Ensure all required fields, especially 'Id', are provided and correctly formatted.
- Verify JSON fields like 'metaData', 'mediaType', 'config', and others are valid JSON strings before sending.
- Check API credentials and base URL configuration for connectivity issues.
- If the media creation fails, review the response for error messages related to permissions or data validation.