commercetools icon

commercetools

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

Actions671

Approval Rule → Update ApprovalRule in BusinessUnit by Key

AI-generated

Summary

Update an Approval Rule identified by its key within a specified Business Unit for a given Associate, modifying its properties based on provided version and actions.

Inputs

  • Associate ID (required) — The ID of the associate in whose Business Unit the approval rule exists.
  • Approval Rule Key (required) — The key of the Approval Rule to update.
  • Version (required) — The current version number of the Approval Rule, used for optimistic concurrency control.
  • Actions (JSON) — A raw JSON array defining the update actions to apply; overrides the UI-defined actions if not empty.
  • Actions (UI) — A structured collection of update actions such as setting approvers, custom fields, description, key, name, predicate, requesters, or status, allowing edits via the node's UI.

Output shape

a single record

Returns the updated Approval Rule object as JSON, reflecting the changes applied by the specified update actions. Requires specifying the correct version to avoid conflicts.

Links

Discussion