Update Row
update_rowUpdate an existing row in a v2 app's collection, replacing its data. Gated by the collection's update role list when it declares one, and by its write list otherwise, so a collection that scopes updates to the row's creator refuses an edit on someone else's row. Pass if_match with the row's current version for an optimistic-locked update; on a version mismatch the relay returns the current row, which is what a retry needs. Returns { row }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The key of the row to update. | |
| data | Yes | The new row body (replaces the row's data) - any JSON value valid against the collection's row schema. | |
| app_id | Yes | The app id. | |
| if_match | No | Optional optimistic-lock version. On mismatch the update is rejected with the current row in details.current. | |
| collection | Yes | The collection name. |