Shopware icon

Shopware

Shopware

Actions778

Promotion Setgroup → Update Promotion Setgroup

AI-generated

Overview

This node operation updates a Promotion Setgroup in the Shopware system. It is useful for scenarios where you need to modify existing promotion setgroups by specifying their identifier and updating related properties such as promotion details, packager key, sorter key, value, and rules. For example, it can be used to adjust promotion configurations dynamically in an e-commerce platform to reflect new marketing strategies or correct existing promotion data.

Use Case Examples

  1. Updating a promotion setgroup's value and associated promotion details to reflect a new discount strategy.
  2. Modifying the packager and sorter keys of a promotion setgroup to change how promotions are grouped and sorted in the storefront.

Properties

Name Meaning
Id Identifier for the promotion_setgroup, used to specify which setgroup to update.
Response Data format for the response; can be empty if no specific format is required.
Promotion Id Identifier for the associated promotion, required for the update.
Packager Key Key used for packaging the promotion setgroup, required for the update.
Sorter Key Key used for sorting the promotion setgroup, required for the update.
Value Numerical value associated with the promotion setgroup, required for the update.
Created At Timestamp for when the promotion setgroup was created, optional for the update.
Updated At Timestamp for when the promotion setgroup was last updated, optional for the update.
Promotion JSON object containing detailed promotion data related to the setgroup, used to update nested promotion information.
Set Group Rules JSON array defining rules for the promotion setgroup, used to update conditions and areas related to the setgroup.

Output

JSON

  • id - The identifier of the updated promotion setgroup.
  • promotionId - The identifier of the associated promotion.
  • packagerKey - The packager key of the promotion setgroup.
  • sorterKey - The sorter key of the promotion setgroup.
  • value - The numerical value of the promotion setgroup.
  • createdAt - Creation timestamp of the promotion setgroup.
  • updatedAt - Last update timestamp of the promotion setgroup.
  • promotion - Detailed promotion data as a JSON object.
  • setGroupRules - Rules associated with the promotion setgroup as a JSON array.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure that the 'Id' property is correctly set to the existing promotion setgroup identifier to avoid 'not found' errors.
  • Validate JSON format for 'Promotion' and 'Set Group Rules' properties to prevent parsing errors.
  • Check API credentials and base URL configuration to ensure successful authentication and connection to the Shopware Admin API.
  • If SSL issues occur, consider enabling the 'Ignore SSL Issues' option in request settings.

Discussion