v50

latestOpenAPI 3.1.0Proprietaryraw.githubusercontent.com2026-05-1759238438.1 KB
Sharings

Update document access

Update a recipient's role.

patch/v1beta/documents/{document_id}/share/{recipient_id}

Path parameters

document_idstring required

Document ID.

Example:doc_01h2xcejqtf2nbrexx3vqjhp41

Document ID.

recipient_idstring required

Recipient ID (TypeID: user_xxx or bot_xxx).

Example:user_01h2xcejqtf2nbrexx3vqjhp41

Recipient ID (TypeID: user_xxx or bot_xxx).

Request body

document_role'viewer' | 'commenter' | 'collaborator' | 'admin' | 'owner' required

Response

Success

errorstring

Error message if the update failed.

successboolean

Whether the update succeeded.