Update account document access
Update which documents are shared with a specific account. Supports bulk addition and removal of document access.
AuthorizationBearer <token>
In: header
Path Parameters
idstring
Account ID
Format
uuididsarray<string>
Array of document IDs to share with the account
Items
1 <= itemsResponse Body
const body = JSON.stringify({ "ids": [ "550e8400-e29b-41d4-a716-446655440001", "550e8400-e29b-41d4-a716-446655440002", "550e8400-e29b-41d4-a716-446655440003" ]})fetch("https://app.orbiqhq.com/api/v1/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08/documents", { method: "PATCH", headers: { "Content-Type": "application/json" }, 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?