Create Repo returning 403? #24348
-
I’ve also asked this question on StackOverflow here: ![]() GitHub API Create Repo returning 403?
github, request, github-api, github-api-v3
asked by
Seth Painter
on 09:15PM - 27 Oct 20 UTC
I’m making a GitHub app, and I’m trying to create a repo according to this documentation docs.github.comRepositories - GitHub DocsWhen I make a GET request to that URL, it works and I get the user’s repos, but making a post request like this:
Returns this
My app has these permissions |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey there @TheFoxarmy 👋 Thanks so much for joining our Community and for submitting your post. I appreciate the details you’ve provided, though I think there may be a confusion about where that You’ve shown us the permissions that the repository itself has in relation to the installation of your app, but the Relevant documentation for this lives here: docs.github.comScopes for OAuth Apps - GitHub DocsThis should be what you need! If you can verify that the token that your app leverages has the appropriate scope defined and you are still experiencing this problem, please let us know. 🙇 |
Beta Was this translation helpful? Give feedback.
-
Hi, so your post and further reading about this subject has actually lead me to conclude that creating repos is a feature of OAuth Apps, not GitHub Apps? |
Beta Was this translation helpful? Give feedback.
Hey there @TheFoxarmy 👋
Thanks so much for joining our Community and for submitting your post. I appreciate the details you’ve provided, though I think there may be a confusion about where that
scope
needs to be defined.You’ve shown us the permissions that the repository itself has in relation to the installation of your app, but the
repo
scope
needs to be defined for the application’s token and not within the repository’s permissions.Relevant documentation for this lives here:
![](https://camo.githubusercontent.com/09f1a7e9d6b0ea844740c836b538685321a18e2de3c2340fbd07f96578b79031/68747470733a2f2f646f63732e6769746875622e636f6d2f6173736574732f696d616765732f736974652f66617669636f6e2e737667)
docs.github.comScopes for OAuth Apps - GitHub Docs
This should be what you need!
If you can verify that the token that your app leverages has the appropriate scope defined and you are still experiencing t…