how to use Enterprise GitHub API to modify a repo of an organization?

时间:2019-01-09 22:03:59

标签: curl github github-api github-enterprise github-api-v3

I am trying to make the repo private through GitHub Enterprise API by running this : $ curl -X PATCH $GitHubAPI -u $username:$password -d '{"name":"$d","private":"false"}' -k

But it returns message: not found

However, if I do a mild change : $ curl $GitHubAPI -u $username:$password -d '{"name":"$d","private":"false"}' -k This will tells me that the repo already exists

So it means that my $GitHubAPI variable is correct, but why the -X PATCH is not working for me?

0 个答案:

没有答案