Created
July 3, 2013 07:21
-
-
Save eddies/5916060 to your computer and use it in GitHub Desktop.
Updating an existing GitHub authorization via HTTP PATCH to public_repo only (e.g. prose.io, which defaults to the more permissive "repo").
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
# List your authorizations (substituting your own GitHub username for <user>) | |
curl -u <user> https://api.github.com/authorizations | |
# Update the scope of a specific authorization (substitute a specific id for <id>) to "public_repo" | |
curl -u <user> --request PATCH https://api.github.com/authorizations/<id> --header "Content-Type:application/json" --data '{"scopes":["public_repo"]}' | |
# Reference: http://developer.github.com/v3/oauth/#oauth-authorizations-api |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment