The mapping.* family (1 verb). Every verb enters through the one front door: it is capability-checked, permission-checked, scope-checked and audited before it runs (see Security & permissions). Each entry below lists its capability, risk class (which fixes the minimum autonomy level), the minimum caller permission, its availability tier, whether it is idempotent, and any outbound egress.
Setmapping.set
| Property | Value |
|---|---|
| Capability | doc.template.author |
| Risk class | Destructive - autonomy L3 |
| Min. permission | Admin |
| Availability | Admin only (CLI/HTTP; never advertised over MCP) |
| Idempotent | No |
| Egress | None - in-box (pure Postgres, no outbound call) |
set the ExtractionMapping (merge-var → source-field) on a pack. DESTRUCTIVE/L3/ADMIN.
{ id, mapping }. Determines regulated render output (the authoring path the templater feeds).
Call POST /v/mapping.set with a JSON body; returns JSON (or { error, code }). Not advertised over MCP (admin-only); reachable via the CLI and HTTP doors.