doc_update
Update a document in the shared virtual filesystem only when the expected SHA-256 hash matches the current version, preventing overwrites from concurrent changes.
Instructions
Atualiza com compare-and-swap. Falha com code=conflict se expected_hash não for o atual.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | ||
| title | No | ||
| doc_id | Yes | ||
| content | No | ||
| message | No | ||
| agent_id | No | ||
| keep_lock | No | ||
| lock_token | No | ||
| share_token | No | ||
| expected_hash | Yes | ||
| content_base64 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||