👋 Welcome to the new Omni docs! We're still migrating, but the old docs are available at docs-legacy.omni.co.
cURL
curl --request POST \ --url https://{instance}.omniapp.co/api/v1/documents/{documentId}/permissions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "role": "VIEWER", "accessBoost": true, "userIds": [ "3c90c3cc-0d44-4b50-8888-8dd25736052a" ], "userGroups": [ "<string>" ] } '
{ "success": true }
Grant document permissions to users or groups
Use either an Organization API Key or Personal Access Token (PAT). Include in the Authorization header as: Bearer YOUR_TOKEN
Bearer YOUR_TOKEN
Document identifier
Permission role
VIEWER
EDITOR
MANAGER
Enable access boost
User IDs to grant permissions
User groups to grant permissions
Permissions granted successfully
true
Was this page helpful?