commercetools icon

commercetools

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

Actions671

Customer Group → Update CustomerGroup by ID

AI-generated

Summary

Update an existing CustomerGroup by its unique ID and version using specified actions to change its attributes.

Inputs

  • Customer Group ID (required) — The unique identifier of the CustomerGroup to update.
  • Version (required) — The expected version of the CustomerGroup to ensure concurrency control.
  • Actions (UI) — A collection of actions to perform on the CustomerGroup, such as changing the name, setting a custom field, setting a custom type, or setting the key.
  • Actions (JSON) — Raw JSON array of update actions. If provided and not empty, it overrides the Actions (UI) input.

Output shape

a single JSON object representing the updated CustomerGroup.

The update requires specifying the current version of the CustomerGroup to handle concurrency. Actions can be supplied either via the UI collection or as raw JSON; when raw JSON is provided, it takes precedence. On success, the updated resource is returned. Errors are returned or can cause the node to fail depending on the workflow error handling settings.

Links

Discussion