# GitHub Enterprise Repos API

**Canonical:** https://apis.io/apis/github-enterprise/github-enterprise-repos-api/  
**Provider:** GitHub Enterprise — https://apis.io/providers/github-enterprise/  
**Base URL:** https://api.github.com  
**Documentation:** https://docs.github.com/en/enterprise-cloud@latest/rest

GitHub Enterprise Repos API is one of 58 APIs that [GitHub Enterprise](https://apis.io/providers/github-enterprise/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 8 JSON Schema definitions. Tagged areas include Repos. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, rate-limit docs, authentication docs, and 8 JSON Schemas.

Interact with GitHub Repos.

## Operations (60 of 211)

| Method | Path | Summary |
|---|---|---|
| POST | `/enterprises/{enterprise}/rulesets` | Create an enterprise repository ruleset |
| GET | `/enterprises/{enterprise}/rulesets/{ruleset_id}` | Get an enterprise repository ruleset |
| PUT | `/enterprises/{enterprise}/rulesets/{ruleset_id}` | Update an enterprise repository ruleset |
| DELETE | `/enterprises/{enterprise}/rulesets/{ruleset_id}` | Delete an enterprise repository ruleset |
| GET | `/orgs/{org}/repos` | List organization repositories |
| POST | `/orgs/{org}/repos` | Create an organization repository |
| GET | `/orgs/{org}/rulesets` | Get all organization repository rulesets |
| POST | `/orgs/{org}/rulesets` | Create an organization repository ruleset |
| GET | `/orgs/{org}/rulesets/rule-suites` | List organization rule suites |
| GET | `/orgs/{org}/rulesets/rule-suites/{rule_suite_id}` | Get an organization rule suite |
| GET | `/orgs/{org}/rulesets/{ruleset_id}` | Get an organization repository ruleset |
| PUT | `/orgs/{org}/rulesets/{ruleset_id}` | Update an organization repository ruleset |
| DELETE | `/orgs/{org}/rulesets/{ruleset_id}` | Delete an organization repository ruleset |
| GET | `/repos/{owner}/{repo}` | Get a repository |
| PATCH | `/repos/{owner}/{repo}` | Update a repository |
| DELETE | `/repos/{owner}/{repo}` | Delete a repository |
| GET | `/repos/{owner}/{repo}/activity` | List repository activities |
| POST | `/repos/{owner}/{repo}/attestations` | Create an attestation |
| GET | `/repos/{owner}/{repo}/attestations/{subject_digest}` | List attestations |
| GET | `/repos/{owner}/{repo}/autolinks` | Get all autolinks of a repository |
| POST | `/repos/{owner}/{repo}/autolinks` | Create an autolink reference for a repository |
| GET | `/repos/{owner}/{repo}/autolinks/{autolink_id}` | Get an autolink reference of a repository |
| DELETE | `/repos/{owner}/{repo}/autolinks/{autolink_id}` | Delete an autolink reference from a repository |
| GET | `/repos/{owner}/{repo}/automated-security-fixes` | Check if Dependabot security updates are enabled for a repository |
| PUT | `/repos/{owner}/{repo}/automated-security-fixes` | Enable Dependabot security updates |
| DELETE | `/repos/{owner}/{repo}/automated-security-fixes` | Disable Dependabot security updates |
| GET | `/repos/{owner}/{repo}/branches` | List branches |
| GET | `/repos/{owner}/{repo}/branches/{branch}` | Get a branch |
| GET | `/repos/{owner}/{repo}/branches/{branch}/protection` | Get branch protection |
| PUT | `/repos/{owner}/{repo}/branches/{branch}/protection` | Update branch protection |
| DELETE | `/repos/{owner}/{repo}/branches/{branch}/protection` | Delete branch protection |
| GET | `/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins` | Get admin branch protection |
| POST | `/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins` | Set admin branch protection |
| DELETE | `/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins` | Delete admin branch protection |
| GET | `/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews` | Get pull request review protection |
| PATCH | `/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews` | Update pull request review protection |
| DELETE | `/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews` | Delete pull request review protection |
| GET | `/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures` | Get commit signature protection |
| POST | `/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures` | Create commit signature protection |
| DELETE | `/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures` | Delete commit signature protection |
| GET | `/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks` | Get status checks protection |
| PATCH | `/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks` | Update status check protection |
| DELETE | `/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks` | Remove status check protection |
| GET | `/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts` | Get all status check contexts |
| POST | `/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts` | Add status check contexts |
| PUT | `/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts` | Set status check contexts |
| DELETE | `/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts` | Remove status check contexts |
| GET | `/repos/{owner}/{repo}/branches/{branch}/protection/restrictions` | Get access restrictions |
| DELETE | `/repos/{owner}/{repo}/branches/{branch}/protection/restrictions` | Delete access restrictions |
| GET | `/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps` | Get apps with access to the protected branch |
| POST | `/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps` | Add app access restrictions |
| PUT | `/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps` | Set app access restrictions |
| DELETE | `/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps` | Remove app access restrictions |
| GET | `/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams` | Get teams with access to the protected branch |
| POST | `/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams` | Add team access restrictions |
| PUT | `/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams` | Set team access restrictions |
| DELETE | `/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams` | Remove team access restrictions |
| GET | `/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users` | Get users with access to the protected branch |
| POST | `/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users` | Add user access restrictions |
| PUT | `/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users` | Set user access restrictions |

…and 151 more operations. They are listed in full on the page.

## Machine-readable artifacts (16)

- **OpenAPI** — https://artifacts.apis.io/github-enterprise/openapi/github-enterprise-repos-api-openapi.yml
- **Documentation** — https://docs.github.com/en/enterprise-cloud@latest/rest
- **RateLimits** — https://docs.github.com/en/enterprise-cloud@latest/rest/using-the-rest-api/rate-limits-for-the-rest-api
- **JSONSchema** — https://artifacts.apis.io/github-enterprise/json-schema/github-enterprise-repository-schema.json
- **JSONSchema** — https://artifacts.apis.io/github-enterprise/json-schema/github-enterprise-full-repository-schema.json
- **JSONSchema** — https://artifacts.apis.io/github-enterprise/json-schema/github-enterprise-app-permissions-schema.json
- **JSONSchema** — https://artifacts.apis.io/github-enterprise/json-schema/github-enterprise-team-repository-schema.json
- **JSONSchema** — https://artifacts.apis.io/github-enterprise/json-schema/github-enterprise-organization-full-schema.json
- **JSONSchema** — https://artifacts.apis.io/github-enterprise/json-schema/github-enterprise-minimal-repository-schema.json
- **Authentication** — https://docs.github.com/en/enterprise-cloud@latest/rest/overview/authenticating-to-the-rest-api
- **Documentation** — https://docs.github.com/en/enterprise-cloud@latest/graphql
- **GraphQL** — https://artifacts.apis.io/github-enterprise/graphql/github-enterprise-graphql.md
- **Documentation** — https://docs.github.com/en/enterprise-server@latest/rest
- **Documentation** — https://docs.github.com/en/enterprise-server@latest/graphql
- **JSONSchema** — https://artifacts.apis.io/github-enterprise/json-schema/github-enterprise-organization-schema.json
- **JSONSchema** — https://artifacts.apis.io/github-enterprise/json-schema/github-enterprise-pull-request-schema.json

## Other GitHub Enterprise APIs (12)

- [GitHub Enterprise Cloud GraphQL API](https://apis.io/apis/github-enterprise/github-enterprise-graphql-api/)
- [GitHub MCP Server](https://apis.io/apis/github-enterprise/github-mcp-server/)
- [GitHub Enterprise Actions API](https://apis.io/apis/github-enterprise/github-enterprise-actions-api/)
- [GitHub Enterprise Code Scanning API](https://apis.io/apis/github-enterprise/github-enterprise-code-scanning-api/)
- [GitHub Enterprise Admin API](https://apis.io/apis/github-enterprise/github-enterprise-enterprise-admin-api/)
- [GitHub Enterprise Issues API](https://apis.io/apis/github-enterprise/github-enterprise-issues-api/)
- [GitHub Enterprise SCIM API](https://apis.io/apis/github-enterprise/github-enterprise-scim-api/)
- [GitHub Enterprise Users API](https://apis.io/apis/github-enterprise/github-enterprise-users-api/)
- [GitHub Enterprise Activity API](https://apis.io/apis/github-enterprise/github-enterprise-activity-api/)
- [GitHub Enterprise Agent Automations API](https://apis.io/apis/github-enterprise/github-enterprise-agent-automations-api/)
- [GitHub Enterprise Agent Merge API](https://apis.io/apis/github-enterprise/github-enterprise-agent-merge-api/)
- [GitHub Enterprise Agent Tasks API](https://apis.io/apis/github-enterprise/github-enterprise-agent-tasks-api/)

## Tags

Repos

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/github-enterprise/github-enterprise-repos-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/github-enterprise/.
