[API v3] Get Repo Permissions #24571
-
When calling GET /repos/:owner/:repo, I used to get the following permissions data:
However, this data is no longer supplied. Was it removed altogether, or is there a newer way to get the information? Note: it is still listed as a part of the response in the documentation. https://developer.github.com/v3/repos/#get-a-repository |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @sommersoft, Thank you for being here! The permission’s data is included only if you authenticate with the API, for example
Alternatively, you could use the GraphQL API to fetch a repo and your permission:
|
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your reply. It highlighted a misstep in my troubleshooting! I can confirm that it is working with an authenticated request, which my program was using but my manual verification was lacking. Now on to more debugging… |
Beta Was this translation helpful? Give feedback.
Hi @sommersoft,
Thank you for being here! The permission’s data is included only if you authenticate with the API, for example
Alternatively, you could use the GraphQL API to fetch a repo and your permission: