Skip to main content
PATCH
/
v1
/
delegations
/
bulk-delete
Delete multiple delegations
curl --request PATCH \
  --url https://staging.api.us.aptlydone.com/decision/v1/delegations/bulk-delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "tenantId": "<string>",
  "delegationIds": [
    "<string>"
  ],
  "cascadeToChildDelegations": false
}'
{
  "deleteCount": 123
}

Authorizations

Authorization
string
header
required

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

Body

application/json
tenantId
string
required

The tenant ID

delegationIds
string[]
required

Array of delegation IDs to delete/archive/restore etc.

Minimum length: 1
cascadeToChildDelegations
boolean
default:false

Indicates where this action should cascade to child delegations

Response

200 - application/json

Delegations deleted successfully

deleteCount
number
required

Number of delegations deleted