Skip to main content
PUT
/
v2
/
workflows
/
{workflow_id}
/
approval-procedures
/
{id}
Update Workflow Approval Procedure
curl --request PUT \
  --url https://public.api.serval.com/v2/workflows/{workflow_id}/approval-procedures/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "steps": [
    {
      "id": "<string>",
      "specificUserIds": [
        "<string>"
      ],
      "servalGroupIds": [
        "<string>"
      ],
      "allowSelfApproval": true,
      "customWorkflowId": "<string>"
    }
  ]
}'
{
  "data": {
    "id": "<string>",
    "steps": [
      {
        "id": "<string>",
        "specificUserIds": [
          "<string>"
        ],
        "servalGroupIds": [
          "<string>"
        ],
        "allowSelfApproval": true,
        "customWorkflowId": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workflow_id
string
required

The ID of the workflow.

id
string
required

The ID of the approval procedure.

Body

application/json
steps
ApprovalStep · object[]

The approval steps for the procedure.

Response

Success

data
object

The updated approval procedure.

I