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 ID

AI-generated

Summary

Update the details of an existing Approval Rule identified by its ID within a specified Business Unit in commercetools.

Inputs

  • Approval Rule ID (required) — The unique ID of the Approval Rule to update.
  • Approval Rule Key (required) — The key of the Approval Rule within the Business Unit.
  • Associate ID (required) — The ID of the associate in the Business Unit context.
  • Version (required) — The current version of the Approval Rule to ensure concurrency control during update.
  • Actions (JSON) — A raw JSON array of update actions to apply to the Approval Rule; overrides the UI-based Actions input if provided.
  • Actions (UI) — An array of update actions specified via UI fields, including setting approvers, custom fields, custom types, description, key, name, predicate, requesters, and status.

Output shape

a single JSON object representing the updated Approval Rule as returned by the commercetools API

Requires valid credentials and correct version for optimistic locking; errors are returned if the update fails.

Links

Discussion