Skip to main content
PUT
/
v2
/
access-policies
/
{access_policy_id}
/
approval-procedures
/
{id}
Update Access Policy Approval Procedure
curl --request PUT \
  --url https://public.api.serval.com/v2/access-policies/{access_policy_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

access_policy_id
string
required

The ID of the access policy.

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