Skip to content

Create a rule within a document flow group

post
https://api.mercadoe.com/v1/document-flows/{documentFlowId}/rules

Adds a new rule to an existing document flow group, including its approval levels
and conditions. Conditions and levels are defined at creation time.

Request

Path Parameters

documentFlowId
int64
required
Identifier of the document flow group.

Body

application/json
name
string
notifyErpOnApproval
boolean
erpIntegrationBeforeLevelApproval
boolean
processId
int32
ruleType
int32
approvalType
string
allowed values: LevelBasedAutoApproveAutoRefuse
isAutomaticDecision
boolean
levels
array of object
conditions
array of object

Responses

200
400
404
OK

Body

application/json
ruleId
int64
Credentials
shell