I have read the instructions on how to delete a version here: https://help.github.com/en/github/managing-packages-with-github-packages/deleting-a-package
When I tried to use the curl, it just gives me this error:
{
"message": "Problems parsing JSON",
"documentation_url": "https://developer.github.com/v4"
}
This is my curl:
curl -X POST -H "Accept: application/vnd.github.package-deletes-preview+json" -H "Authorization: bearer PERSONALACCESSTOKEN" -d '{"query":"mutation { deletePackageVersion(input:{packageVersionId:\"1.0.0\"}) { success }}"}' https://api.github.com/graphql
Am I missing something? How can I properly authenticate myself?