commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Discount-group → Update DiscountGroup by Key

AI-generated

Summary

Update a DiscountGroup identified by its unique key by specifying the version and one or more update actions.

Inputs

  • Discount-group Key (required) — The unique key of the DiscountGroup to update.
  • Version (required) — The current version of the DiscountGroup, required for concurrency control.
  • Actions (JSON) — A raw JSON array of update actions to apply to the DiscountGroup. This overrides the UI-based actions if provided.
  • Actions (UI) — One or more update actions chosen via the UI, such as setting name, description, key, sort order, or active status. Ignored if Actions (JSON) is provided.

Output shape

a single record

Returns the updated DiscountGroup object as JSON. Throws an error if the update fails, including version conflicts. Supports specifying multiple actions per update. The update request uses the commercetools API endpoint for DiscountGroup updates by key.

Links

Discussion