update_record
Replace a record's document with a new published revision (full-document replace, not a partial patch). data must match the collection schema (see describe_resource). Requires the UPDATE permission on this API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Full replacement document matching the schema. | |
| parents | No | Parent placeholders for nested collection resource_ids. | |
| record_id | Yes | resource_key of the record to replace. | |
| collection | Yes | Collection resource_id from discover_resources. | |
| expected_revision | No | Optional. Apply the write only if the record's current revision is still this one -- pass the `_sys.revision` value from the record you read. Prevents silently overwriting another writer's update; returns precondition_failed if the record moved on. |