我已在此处阅读有关如何删除版本的说明:https ://help.github.com/en/github/managing-packages-with-github-packages/deleting-a-package
当我尝试使用 curl 时,它只是给了我这个错误:
{
"message": "Problems parsing JSON",
"documentation_url": "https://developer.github.com/v4"
}
这是我的卷曲:
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
我错过了什么吗?我怎样才能正确地验证自己?