Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 1 of 1

Create repository using template API

I'm trying to understand how Create repository using a repository template API permissions work when being used by a Github App.

 

Currently the app has Administration and Contents Repository permissions. However, I see the following error when trying to use that API endpoint either via an installation token or a user access token:

curl -X POST https://api.github.com/repos/react-boilerplate/react-boilerplate/generate -d '{"owner": "scouredimage", "name": "testrepo"}' -H 'Accept: application/vnd.github.baptiste-preview+json' -H 'Content-Type: application/json' -H 'Authorization: token TOKEN'
{
  "message": "Resource not accessible by integration",
  "documentation_url": "https://developer.github.com/v3/repos/#create-repository-using-a-repository-template"
}

 

Does this mean that the API endpoint is just not accessible to Github Apps? Or, am I missing a required App permission?

 

Thanks in advance!