Create or update an approval rule

PUT
/buyers/{buyerID}/approvalrules/{approvalRuleID}

Description

If an object with the same ID already exists, it will be overwritten.

Roles

At least one of the roles below is required to access this endpoint

FullAccess
ApprovalRuleAdmin

Parameters

NameTypeDescriptionPossible Values
buyerIDstringID of the buyer.---
approvalRuleIDstringID of the approval rule.---

Request Body

PropertyTypeFormatMax LengthPossible Values
IDstring---------
Namestring---100 characters---
Descriptionstring---2000 characters---
ApprovingGroupID
Required
string---------
RuleExpression
Required
string---400 characters---

xpobject---------

Response Body

PropertyTypeFormatMax LengthPossible Values
IDstring---------
Namestring---100 characters---
Descriptionstring---2000 characters---
ApprovingGroupIDstring---------
RuleExpressionstring---400 characters---

xpobject---------