Create a resource record
create_resourceCreates new Portal resources like blocks, queries, users, or data sources, applying risk-domain gates and optional dry-run validation before writing.
Instructions
Create a record. body carries the resource's fields (see describe_resource). Writes are gated by risk domain: content is on by default; data (datasources/db_modifications) needs PORTAL_ALLOW_DATA_WRITES; admin (users/groups/etc.) needs PORTAL_ALLOW_ADMIN_WRITES.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Field values for the new record. Unknown fields are dropped. | |
| dry_run | No | Run every gate (domain, structure, per-kind rules, references) and report the would-be write without creating. | |
| resource | Yes | Resource type. Call describe_resource for fields and supported verbs. |