Company logoTrust Center Documentation
API v1 Reference/Accounts/Id/Documents

Update account document access

Update which documents are shared with a specific account. Supports bulk addition and removal of document access.

PATCH
/api/v1/accounts/{id}/documents
AuthorizationBearer <token>

In: header

Path Parameters

idstring

Account ID

Formatuuid
idsarray<string>

Array of document IDs to share with the account

Response Body

const body = JSON.stringify({
  "ids": [
    "doc-123",
    "doc-456",
    "doc-789"
  ]
})

fetch("https://app.orbiqhq.com/api/v1/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08/documents", {
  body
})
{
  "success": true,
  "data": {
    "shared_count": 5,
    "message": "Document access updated successfully"
  }
}
{
  "error": "No document IDs provided or invalid format"
}
Empty
Empty
Empty
Empty

How is this guide?