coda_add_permission
Add a permission entry to a Coda doc, granting access to a user by email or domain. Specify access level: readonly, write, comment, or none to control permissions.
Instructions
Add a permission entry to a Coda doc.
Grants access to a user by email or to an entire domain. Specify either principal_email or principal_domain (not both). The access level controls what the principal can do: readonly, write, comment, or none (removes implicit access). Returns the created permission entry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | The doc ID to add permission to | |
| access | Yes | Access level to grant | |
| principal_email | No | Email address of the user to grant access to | |
| principal_domain | No | Domain to grant access to (e.g. 'example.com') | |
| suppress_notification | No | If True, don't send an email notification |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |