Avoiding version conflicts
Last updated 24 days ago
Avoiding version conflicts
Every list item has a version. Modification tools optionally accept expectedVersion (taken from a previous read). If the version no longer matches, the server responds with a version conflict instead of silently overwriting.
This matters when multiple AIs or clients touch the same item.
Supported tools
update_list_itemcomplete_list_itemdelete_list_item
Example
json
On conflict:
json
→ Re-read the item (version field), then resend using the current version.