akb_update_file
Replace an existing vault file's content while preserving its URI. Hashes local file to skip unchanged content; optional expected hash/version guards against concurrent writes with 409.
Instructions
Replace the bytes of an existing vault file while preserving its URI. The local file is hashed before transfer; identical content is skipped. Pass expected_content_hash and/or expected_version from akb_get_file to reject stale writes with HTTP 409 instead of overwriting a concurrent change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | Yes | Existing file URI (`akb://{vault}[/coll/{path}]/file/{uuid}`) | |
| file_path | Yes | Absolute path to the local replacement file | |
| mime_type | No | Optional replacement MIME type. The existing file type is preserved when omitted. | |
| _vault_skill_ack | No | Opaque acknowledgement from vault_skill.ack_token. Apply the guide, then retry the unchanged operation with this value. The bundled proxy fills it on an exact retry. | |
| expected_version | No | Optional opaque `version` returned by akb_get_file; stale values are rejected with 409 | |
| expected_content_hash | No | Optional sha256 returned by akb_get_file; stale values are rejected with 409 |