Note: Repositories inherited through a parent team will also be checked.Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the Accept header:
请求示例请求示例
Shell
JavaScript
Java
Swift
curl--location--request GET 'https://api.github.com/teams//repos//'
响应示例响应示例
200 - 示例 1
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Path 参数
team_id
integer
必需
owner
string
必需
repo
string
必需
返回响应
🟢200Alternative response with extra repository information