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
Rule → Update Rule
AI-generatedOverview
This node operation updates an existing Rule resource in the Shopware system. It allows users to modify various attributes of a rule such as its identifier, name, priority, description, validity status, and complex nested properties like areas, conditions, product prices, shipping method prices, payment methods, promotions, and more. This operation is beneficial for managing business rules dynamically within an e-commerce platform, enabling automation and customization of pricing, promotions, shipping, and other rule-based logic.
Use Case Examples
- Updating a pricing rule to change its priority and add new conditions for product discounts.
- Modifying a shipping rule to update shipping method prices and availability based on new criteria.
- Adjusting promotional rules to include new customer segments or product categories.
Properties
| Name | Meaning |
|---|---|
| Id | Identifier for the rule, required to specify which rule to update. |
| Response | Data format for response, used as a query parameter to specify the response format. |
| Name | Name of the rule, required for identification and management. |
| Priority | Priority of the rule, required to determine rule precedence. |
| Description | Description of the rule, optional for additional context. |
| Invalid | Boolean flag indicating if the rule is invalid or not. |
| Areas | JSON array defining the areas where the rule applies. |
| Custom Fields | JSON object for custom fields associated with the rule. |
| Module Types | JSON object specifying module types related to the rule. |
| Created At | Timestamp string indicating when the rule was created. |
| Updated At | Timestamp string indicating when the rule was last updated. |
| Conditions | JSON array defining the conditions under which the rule applies. |
| Product Prices | JSON array specifying product price details related to the rule. |
| Shipping Method Prices | JSON array specifying shipping method price details related to the rule. |
| Shipping Method Price Calculations | JSON array for shipping method price calculation details. |
| Shipping Methods | JSON array listing shipping methods associated with the rule. |
| Payment Methods | JSON array listing payment methods associated with the rule. |
| Persona Promotions | JSON array defining persona-based promotions linked to the rule. |
| Flow Sequences | JSON array defining flow sequences related to the rule. |
| Tax Providers | JSON array specifying tax providers linked to the rule. |
| Tags | JSON array of tags associated with the rule. |
| Order Promotions | JSON array defining order promotions linked to the rule. |
| Cart Promotions | JSON array defining cart promotions linked to the rule. |
| Promotion Discounts | JSON array specifying promotion discounts related to the rule. |
| Promotion Set Groups | JSON array defining promotion set groups linked to the rule. |
| Request Options | Collection of request options such as batching, SSL settings, proxy, and timeout. |
Output
JSON
id- Identifier of the updated rulename- Name of the updated rulepriority- Priority level of the updated ruledescription- Description of the updated ruleinvalid- Validity status of the updated ruleareas- Areas where the rule appliescustomFields- Custom fields associated with the rulemoduleTypes- Module types related to the rulecreatedAt- Creation timestamp of the ruleupdatedAt- Last update timestamp of the ruleconditions- Conditions defining the rule's applicationproductPrices- Product price details related to the ruleshippingMethodPrices- Shipping method price details related to the ruleshippingMethodPriceCalculations- Shipping method price calculation detailsshippingMethods- Shipping methods associated with the rulepaymentMethods- Payment methods associated with the rulepersonaPromotions- Persona-based promotions linked to the ruleflowSequences- Flow sequences related to the ruletaxProviders- Tax providers linked to the ruletags- Tags associated with the ruleorderPromotions- Order promotions linked to the rulecartPromotions- Cart promotions linked to the rulepromotionDiscounts- Promotion discounts related to the rulepromotionSetGroups- Promotion set groups linked to the rule
Dependencies
- an API key credential for Shopware Admin API
Troubleshooting
- Ensure the 'Id' property is correctly set to the rule you want to update; otherwise, the update will fail.
- Verify that JSON properties like 'areas', 'conditions', 'productPrices', etc., are valid JSON strings to avoid parsing errors.
- Check API credentials and base URL configuration to ensure successful authentication and connection to the Shopware Admin API.
- If the API returns errors, review the error message for details on missing or invalid fields and adjust the input accordingly.