POST
/
approval-chains
cURL
curl --request POST \
  --url https://api.daraa.io/approval-chains \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "name": "<string>",
  "steps": [
    {
      "id": "<string>",
      "stepNumber": 123,
      "approverType": "user",
      "approverId": "<string>",
      "approverName": "<string>",
      "thresholdAmount": 123,
      "isRequired": true
    }
  ],
  "isActive": true
}'
{
  "id": "<string>",
  "name": "<string>",
  "steps": [
    {
      "id": "<string>",
      "stepNumber": 123,
      "approverType": "user",
      "approverId": "<string>",
      "approverName": "<string>",
      "thresholdAmount": 123,
      "isRequired": true
    }
  ],
  "isActive": true
}

Body

application/json
id
string
required

Unique identifier for the approval chain

name
string
required

Name of the approval chain

steps
object[]
required

Steps in the approval chain

isActive
boolean
required

Whether approval chain is active

Response

200 - application/json

Ok

id
string
required

Unique identifier for the approval chain

name
string
required

Name of the approval chain

steps
object[]
required

Steps in the approval chain

isActive
boolean
required

Whether approval chain is active