Group of 6 Use it now
Batch writes to an artifact's database can now pin individual entries to expected versions, with clearer conflict errors
What
write_dbbatch operations can now include anif_versionon each entry, individually pinning specific documents to an expected version so the whole batch fails if any pinned document changed since it was read.- A new
deletedb_op is added to write_db, working alongsideset,update,str_replace, and it too can carry anif_versionconstraint. - If the number of entries in a batch changes after approval (entries added or removed), the write is now rejected with "this batch no longer lists the writes that were approved (entries were added or removed)".
- Batches now track a version pin per entry (
entryPins), not just one overall pin, and a server that doesn't support batch writes with version pins at all now gets its own explicit error. - Version-mismatch errors are clearer: when the document's current version is known, the error tells you the new version number to plan against; when it's unknown or deleted, it tells you to check whether the document still exists, and for deletes says there's nothing left to do while for other operations it suggests re-creating with a plain
set. The error also names which specific write in the batch was stale.
Why This lets tools safely make several conditional writes at once instead of just one: if any pinned document was modified elsewhere since being read, none of the batch is applied, and the error message tells you exactly which write conflicted and what to do about it, instead of silently overwriting concurrent edits.
Names in the bundledeleteifVersion
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Added since
A small documentation edit on Deploy with MDM touched a line naming delete after this was published.
| **Limits** | Per-device token cap and its window length<br />Retention periods after which idle chats, Cowork tasks, and Code sessions are deleted, and the hold that suspends deletion |third-party/claude-desktop/mdm see the edit
Confirmed since
Anthropic's documentation has since written up delete, on Service Accounts.
- `type: "service_account_workspace_member_deleted"`api/beta/organization/service_accounts see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up delete, on Service Accounts.