Add a repository to an app's installation

Hi, I see that there’s this api that allows you to add a repo to an installation (https://developer.github.com/v3/apps/installations/#add-repository-to-installation

So when I give it the installation ID of the app I have installed in my user account, and I give it the id of a repo and i want added to the list of repos for that installation, I get a 403 with body {“message”:“Resource not accessible by integration”,“documentation_url”:“https://developer.github.com/v3/apps/installations/#add-repository-to-installation”}

I tried to call it with “token myOauthAccessToken” as the authorization header.

Any tips/help?

Thanks!

Hi @aliak00,

Thanks for being here! Are you experiencing this on a private repository?

Hey, yes. It’s one of my own private repos. The docs say I should be able to add a repo as long as I have admin access?

Cheers,

  • Ali