host.state.insert
Insert one row (an object) or several (an array of objects) into a declared table. Each row is validated against the table's schema first -- a type mismatch fails the whole call with state_schema_violation and writes nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | One row (an object) or several (an array of objects), each validated against the table's schema. | |
| table | Yes | Name of the declared table to insert into. | |
| end_user | No | "self" for the caller's own verified end-user identity, an explicit subject (only when this call carries no end-user identity of its own), or omit/null for the tenant-wide value. | |
| tenant_key | No | The key `signup` returned. Required only when this connection carries no Authorization: Bearer header -- when both are present, the header wins. |