commercetools icon

commercetools

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

Actions671

Approval Rule → Create ApprovalRule in BusinessUnit

AI-generated

Summary

Create a new Approval Rule within a specified Business Unit's associate context by providing key details and configuration for approval governance.

Inputs

  • Approval Rule Key (required) — Unique identifier key for the approval rule to create.
  • Associate ID (required) — Identifier of the associate in the business unit under whom the approval rule is created.
  • Name (required) — Human-readable name for the approval rule.
  • Status (required) — Current status of the approval rule (e.g., Active, Inactive).
  • Predicate (required) — Logical predicate defining when this approval rule applies.
  • Approvers › Tiers — JSON array defining the tiers of approvers responsible for approving requests.
  • Requesters (required) — JSON array listing the requesters authorized to initiate approval requests under this rule.

Output shape

a single JSON object representing the created Approval Rule

The output is the created approval rule resource as returned by the commercetools API including all set properties; errors are returned as failure responses.

Links

Discussion