Grant access
POST/v1/grants
Grants a principal a role on a resource (folder grants cascade to the subtree). If a grant for that principal+resource already exists, its role is updated (200); otherwise a grant is created (201).
Requires an API key (bearer), scoped to the active org. Supports idempotency keys.
Body parameters
principal_typestringrequiredPossible values:
user,email,group,orgprincipalstringrequiredmax 320 charsUser id, email, or group id.
resource_typestringrequiredPossible values:
deck,folderresourcestringrequiredrolestringrequiredPossible values:
viewer,commenter,editor
Returns
200The updated grant.201The new grant.
Failures use the standard error envelope with a closed set of codes.