commercetools icon

commercetools

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

Actions671

Approval Flow → Update ApprovalFlow in BusinessUnit

AI-generated

Summary

Update an existing Approval Flow in a Business Unit in commercetools by specifying its key, ID, associate ID, and version along with a set of update actions.

Inputs

  • Approval Flow Key (required) — The unique key identifying the approval flow to update.
  • Approval Flow ID (required) — The ID of the approval flow to update.
  • Associate ID (required) — The ID of the associate performing the update within the Business Unit.
  • Version (required) — The current version number of the approval flow to ensure update consistency.
  • Actions (JSON) — A raw JSON array defining update actions to apply to the approval flow; if provided, this overrides the UI-configured actions.
  • Actions (UI) — One or more update actions selected through the UI, such as Approve, Reject (with reason), SetCustomField, and SetCustomType, defining modifications to apply to the approval flow.

Output shape

a single JSON object representing the updated Approval Flow resource returned from commercetools.

The output contains the updated approval flow details as returned by the commercetools API. The operation requires correct versioning to prevent conflicts and supports multiple kinds of update actions. Errors during the update will be returned according to n8n's standard error handling.

Examples

Example 1: Update an Approval Flow by Rejecting with a Reason

Specify the approval flow key, ID, associate ID, current version, and an action to reject the approval with a reason.

Links

Discussion