Change what data a Napkin interface can use
napkin_interfaces_grant_dataSet the sheet tables, Ledger metrics and Workbench Tasks an interface may use (ADR 0085, 0086), replacing the whole list. Tables: access read, add (read and add records) or edit (also change and delete); optionally limit to some columns by name. Metrics: read or record. Tasks: the page may start them. The page then calls zw.tables.query / add / update / remove, zw.metrics.read / record and zw.tasks.start / get. Anyone who can open the interface, including people it's shared with, gets this access (a shared link can only read and add), so ask the user before widening it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tasks | No | Workbench Tasks the page may start with zw.tasks.start, and check with zw.tasks.get. | |
| tables | No | ||
| metrics | No | ||
| workspace | No | Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys. | |
| approvalId | No | Approval id from a prior needs_confirmation response. Omit on the first call. | |
| interfaceId | Yes |