Update table row
table_update_rowPartially merge typed JSON into one table row, named by its own id (rowId names its table). A workspace table needs expectedRevision and why. A row you cannot read is NOT_FOUND. Returns a bounded receipt. Setting the key column to a value another row holds is STATE_CONFLICT; a key value that is an object, an array or over 1024 bytes, or text holding U+0000 or a lone surrogate, is INVALID_INPUT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| why | No | Required for workspace items: one sentence on what the person is trying to accomplish, in their terms, not a description of this edit. Every workspace write takes one; sessions and summaries record themselves from it. At most 300 characters. | |
| data | Yes | The columns to set; the others keep their values. | |
| rowId | Yes | The row, by its own id (it names its table). | |
| expectedRevision | No | The row's revision as you read it: required for a workspace table (a stale one is CONFLICT), optional otherwise. | |
| expectedWorkspaceRevision | No | Optional: refuse (CONFLICT) an update that widens the schema if the table changed since this workspaceRevision. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| updated | Yes | ||
| revision | Yes | ||
| updatedAt | Yes |