sanity_patch
Partially update a Sanity document by setting, unsetting, incrementing, or decrementing fields. Requires a write token.
Instructions
Partially update a document. Requires write token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The document ID to patch | |
| set | No | Fields to set or update | |
| unset | No | Field names to remove | |
| inc | No | Numeric fields to increment | |
| dec | No | Numeric fields to decrement |