Skip to main content
PUT
/
v2
/
approval-delegations
/
{id}
Update Approval Delegation
curl --request PUT \
  --url https://public.api.serval.com/v2/approval-delegations/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "delegates": [
    {
      "type": "APPROVAL_DELEGATE_TYPE_UNSPECIFIED",
      "id": "<string>"
    }
  ],
  "priority": 123,
  "description": "<string>"
}
'
{
  "data": {
    "id": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "delegatorUserId": "<string>",
    "delegates": [
      {
        "type": "APPROVAL_DELEGATE_TYPE_UNSPECIFIED",
        "id": "<string>"
      }
    ],
    "priority": 123,
    "description": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The ID of the approval delegation rule to update.

Body

application/json
delegates
ApprovalDelegate · object[]

The delegates who can approve on behalf of the delegator.

priority
integer<int32> | null

The priority of the delegation rule (lower values are higher priority).

description
string | null

A description of the delegation rule.

Response

Success

data
data · object

An approval delegation rule that allows a user to delegate their approval responsibilities.