Create Repo returning 403?

I’ve also asked this question on StackOverflow here:

I’m making a GitHub app, and I’m trying to create a repo according to this documentation

When I make a GET request to that URL, it works and I get the user’s repos, but making a post request like this:

curl --request POST \
  --url \
  --header 'authorization: token  [user_access_token]' \
  --data '{"name": "test"}'

Returns this

  "message": "Resource not accessible by integration",
  "documentation_url": ""

My app has these permissions

Hey there @TheFoxarmy :wave:

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:

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 this problem, please let us know. :bow:

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?
I believe this is the case, and after switching to using an OAuth app instead of a GitHub app, I am no longer experiencing this problem and haven’t found any loss in functionality with my app.
If this is the case, I would hope that going forward, the documentation becomes more clear about what can and should be done with each authentication strategy for each API function.