Skip to main content
PATCH
/
v1
/
delegations
/
bulk-link-documents
Link multiple documents and delegations
curl --request PATCH \
  --url https://staging.api.us.aptlydone.com/decision/v1/delegations/bulk-link-documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "tenantId": "123e4567-e89b-12d3-a456-426614174000",
  "delegationIds": [
    "123e4567-e89b-12d3-a456-426614174001",
    "123e4567-e89b-12d3-a456-426614174002"
  ],
  "documentIds": [
    "123e4567-e89b-12d3-a456-426614174003",
    "123e4567-e89b-12d3-a456-426614174004"
  ]
}'

Authorizations

Authorization
string
header
required

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

Body

application/json
tenantId
string<uuid>
required

Tenant ID

Example:

"123e4567-e89b-12d3-a456-426614174000"

delegationIds
string[]
required

Array of delegation IDs to link documents to

Example:
[
"123e4567-e89b-12d3-a456-426614174001",
"123e4567-e89b-12d3-a456-426614174002"
]
documentIds
string[]
required

Array of document IDs to link with delegations

Example:
[
"123e4567-e89b-12d3-a456-426614174003",
"123e4567-e89b-12d3-a456-426614174004"
]

Response

200

Documents are being linked to delegations