
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeYes, the Mutate API absolutely allows you to create drafts without publishing! You do this by prefixing the document _id with drafts.
When you want to save a document as a draft (not published), simply add the drafts. prefix to the _id:
{
"create": {
"_id": "drafts.post-123",
"_type": "post",
"title": "Example Post"
}
}This creates a draft document that exists separately from any published version. When you later publish it from Sanity Studio, the draft merges with the published document.
500 errors from the Mutate API can have several causes. Here are the most common culprits:
1. Document size limits
2. Rate limits
3. Attribute limits
4. Authentication issues
Authorization header is properly formatted5. Validation or malformed data
_type)To troubleshoot your 500 errors:
The draft functionality itself is rock-solid and widely used, so the 500 errors are likely related to one of the limits or data issues above rather than the draft mechanism itself.
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store