Improvements and fixes in documents, dataset, and identity tools
Published: September 3, 2026
v2.31.1
Improvements
whoamitool: Include the active Sanity account in responses.query_documentstool: Removed an unused parameter.get_documenttool: Validate provided document IDs.query_documentstool: Gracefully handle Content Lake query timeouts.- Schema overviews: Improved guidance for retrieving exact field definitions.
create_datasettool: Validate provided dataset names.
Fixes
- Content Releases: Ensure document changes are saved to the intended release.
search_docstool: Fixed an error when no results were returned.patch_documentstool:- Corrected the examples for targeting a single array item so they use valid JSON and no longer create selectors that match nothing.
- Documented that adding a Portable Text annotation requires updating both
markDefsand the target span’smarksin the same request.