GET
/teams/{team_id}/repos/{owner}/{repo}DeprecatedCheck team permissions for a repository (Legacy)
[!WARNING] Endpoint closing down notice: This endpoint route is closing down 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.
[!NOTE] Repositories inherited through a parent team will also be checked.
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:
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
team_idintegerrequired
The unique identifier of the team.
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.
200Alternative response with extra repository information
idintegerrequired
Unique identifier of the repository
node_idstringrequired
namestringrequired
The name of the repository.
full_namestringrequired
licenseobjectrequired
License Simple
forksintegerrequired
permissionsobjectoptional
role_namestringoptional
ownerobjectrequired
A GitHub user.
privatebooleanrequired
Whether the repository is private or public.
html_urlstringrequired
descriptionstringrequired
forkbooleanrequired
urlstringrequired
archive_urlstringrequired
assignees_urlstringrequired
blobs_urlstringrequired
branches_urlstringrequired
collaborators_urlstringrequired
comments_urlstringrequired
commits_urlstringrequired
compare_urlstringrequired
contents_urlstringrequired
contributors_urlstringrequired
deployments_urlstringrequired
downloads_urlstringrequired
events_urlstringrequired
forks_urlstringrequired
git_commits_urlstringrequired
git_refs_urlstringrequired
git_tags_urlstringrequired
git_urlstringrequired
issue_comment_urlstringrequired
issue_events_urlstringrequired
issues_urlstringrequired
keys_urlstringrequired
labels_urlstringrequired
languages_urlstringrequired
merges_urlstringrequired
milestones_urlstringrequired
notifications_urlstringrequired
pulls_urlstringrequired
releases_urlstringrequired
ssh_urlstringrequired
stargazers_urlstringrequired
statuses_urlstringrequired
subscribers_urlstringrequired
subscription_urlstringrequired
tags_urlstringrequired
teams_urlstringrequired
trees_urlstringrequired
clone_urlstringrequired
mirror_urlstringrequired
hooks_urlstringrequired
svn_urlstringrequired
homepagestringrequired
languagestringrequired
forks_countintegerrequired
stargazers_countintegerrequired
watchers_countintegerrequired
sizeintegerrequired
default_branchstringrequired
The default branch of the repository.
open_issues_countintegerrequired
is_templatebooleanoptional
Whether this repository acts as a template that can be used to generate new repositories.
topicsarray<string>optional
has_issuesbooleanrequired
Whether issues are enabled.
has_projectsbooleanrequired
Whether projects are enabled.
has_wikibooleanrequired
Whether the wiki is enabled.
has_pagesbooleanrequired
has_downloadsbooleanrequired
Whether downloads are enabled.
archivedbooleanrequired
Whether the repository is archived.
disabledbooleanrequired
Returns whether or not this repository disabled.
visibilitystringoptional
The repository visibility: public, private, or internal.
pushed_atstringrequired
created_atstringrequired
updated_atstringrequired
allow_rebase_mergebooleanoptional
Whether to allow rebase merges for pull requests.
temp_clone_tokenstringoptional
allow_squash_mergebooleanoptional
Whether to allow squash merges for pull requests.
allow_auto_mergebooleanoptional
Whether to allow Auto-merge to be used on pull requests.
delete_branch_on_mergebooleanoptional
Whether to delete head branches when pull requests are merged
allow_merge_commitbooleanoptional
Whether to allow merge commits for pull requests.
allow_forkingbooleanoptional
Whether to allow forking this repo
web_commit_signoff_requiredbooleanoptional
Whether to require contributors to sign off on web-based commits
subscribers_countintegeroptional
network_countintegeroptional
open_issuesintegerrequired
watchersintegerrequired
master_branchstringoptional
204Response if repository is managed by this team
404Not Found if repository is not managed by this team
Error handling
A 404 is returned: Not Found if repository is not managed by this team.
Was this helpful?