document_action
Publish, unpublish, or delete documents in Sanity by specifying the action type and document ID.
Instructions
Perform document actions like publishing, unpublishing, or deleting documents
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| versionId | No | ID of the draft document to publish (with drafts. prefix) | |
| actionType | Yes | Type of document action to perform | |
| publishedId | Yes | ID of the published document (without drafts. prefix) | |
| includeDrafts | No | Array of draft document IDs to include in deletion |