Last active
December 26, 2020 21:36
-
-
Save 3200pro/1f02c80ea47735e52ef6eec2cd9807bf to your computer and use it in GitHub Desktop.
Sanity.io Delete Posts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl 'https://<Project ID>.api.sanity.io/v1/data/mutate/production' \ | |
-H 'Authorization: Bearer <Token>' \ | |
-H 'Content-Type: application/json' \ | |
--data-binary '{"mutations":[ | |
{ | |
"delete": { | |
"id": "<Post ID>" | |
} | |
} | |
]}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment