PUT
/
v1
/
teams
/
{team_id}
/
access-policies
/
{access_policy_id}
/
approval-procedure
Update Approval Procedure
curl --request PUT \
  --url https://public.api.serval.com/v1/teams/{team_id}/access-policies/{access_policy_id}/approval-procedure \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "steps": [
    {
      "id": "<string>",
      "stepType": "APPROVAL_PROCEDURE_STEP_TYPE_UNSPECIFIED",
      "specificUserIds": [
        "<string>"
      ],
      "servalGroupIds": [
        "<string>"
      ],
      "allowSelfApproval": true
    }
  ]
}'
{
  "approvalProcedure": {
    "id": "<string>",
    "steps": [
      {
        "id": "<string>",
        "stepType": "APPROVAL_PROCEDURE_STEP_TYPE_UNSPECIFIED",
        "specificUserIds": [
          "<string>"
        ],
        "servalGroupIds": [
          "<string>"
        ],
        "allowSelfApproval": true
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

team_id
string
required

The ID of the Serval team.

access_policy_id
string
required

The ID of the access policy.

Body

application/json

Response

200
application/json

Success

The response is of type object.