/
GI
github
/
GitHub v3 REST API
Search skmtc…
⌘K
Docs
Sign in
Sign in
APIs
Generators
Stacks
Projects
Docs
History
Schema
Sources
Checked 30m ago · Updated 3d ago
View markdown
github
GitHub v3 REST API
patch
Accept a repository invitation
v58
latest
OpenAPI 3.0.3
MIT
raw.githubusercontent.com
2026-08-06
1,465
1,083
13.3 MB
actions
210
activity
32
agent-tasks
5
agents
30
apps
47
billing
22
campaigns
5
checks
12
classroom
6
code-quality
4
code-scanning
26
code-security
20
codes-of-conduct
2
codespaces
48
copilot
44
copilot-spaces
28
credentials
1
dependabot
31
dependency-graph
5
emojis
1
enterprise-admin
111
enterprise-team-memberships
6
enterprise-team-organizations
6
enterprise-teams
5
gists
20
git
13
gitignore
2
hosted-compute
6
interactions
16
issues
58
licenses
3
markdown
2
meta
5
migrations
22
oidc
8
orgs
135
packages
27
private-registries
6
projects
26
pulls
34
rate-limit
1
reactions
15
repos
211
post
Create an enterprise repository ruleset
get
Get an enterprise repository ruleset
put
Update an enterprise repository ruleset
delete
Delete an enterprise repository ruleset
get
List organization repositories
post
Create an organization repository
get
Get all organization repository rulesets
post
Create an organization repository ruleset
get
List organization rule suites
get
Get an organization rule suite
get
Get an organization repository ruleset
put
Update an organization repository ruleset
delete
Delete an organization repository ruleset
get
Get a repository
delete
Delete a repository
patch
Update a repository
get
List repository activities
post
Create an attestation
get
List attestations
get
Get all autolinks of a repository
post
Create an autolink reference for a repository
get
Get an autolink reference of a repository
delete
Delete an autolink reference from a repository
get
Check if Dependabot security updates are enabled for a repository
put
Enable Dependabot security updates
delete
Disable Dependabot security updates
get
List branches
get
Get a branch
get
Get branch protection
put
Update branch protection
delete
Delete branch protection
get
Get admin branch protection
post
Set admin branch protection
delete
Delete admin branch protection
get
Get pull request review protection
delete
Delete pull request review protection
patch
Update pull request review protection
get
Get commit signature protection
post
Create commit signature protection
delete
Delete commit signature protection
get
Get status checks protection
delete
Remove status check protection
patch
Update status check protection
get
Get all status check contexts
put
Set status check contexts
post
Add status check contexts
delete
Remove status check contexts
get
Get access restrictions
delete
Delete access restrictions
get
Get apps with access to the protected branch
put
Set app access restrictions
post
Add app access restrictions
delete
Remove app access restrictions
get
Get teams with access to the protected branch
put
Set team access restrictions
post
Add team access restrictions
delete
Remove team access restrictions
get
Get users with access to the protected branch
put
Set user access restrictions
post
Add user access restrictions
delete
Remove user access restrictions
post
Rename a branch
get
List repository push rule bypass requests
get
Get a repository push bypass request
get
List CODEOWNERS errors
get
List repository collaborators
get
Check if a user is a repository collaborator
put
Add a repository collaborator
delete
Remove a repository collaborator
get
Get repository permissions for a user
get
List commit comments for a repository
get
Get a commit comment
delete
Delete a commit comment
patch
Update a commit comment
get
List commits
get
List branches for HEAD commit
get
List commit comments
post
Create a commit comment
get
List pull requests associated with a commit
get
Get a commit
get
Get the combined status for a specific reference
get
List commit statuses for a reference
get
Get community profile metrics
get
Compare two commits
get
Get repository content
put
Create or update file contents
delete
Delete a file
get
List repository contributors
get
List deployments
post
Create a deployment
get
Get a deployment
delete
Delete a deployment
get
List deployment statuses
post
Create a deployment status
get
Get a deployment status
post
Create a repository dispatch event
get
List environments
get
Get an environment
put
Create or update an environment
delete
Delete an environment
get
List deployment branch policies
post
Create a deployment branch policy
get
Get a deployment branch policy
put
Update a deployment branch policy
delete
Delete a deployment branch policy
get
Get all deployment protection rules for an environment
post
Create a custom deployment protection rule on an environment
get
List custom deployment rule integrations available for an environment
get
Get a custom deployment protection rule
delete
Disable a custom protection rule for an environment
get
List forks
post
Create a fork
get
Get the hash algorithm for a repository
get
List repository webhooks
post
Create a repository webhook
get
Get a repository webhook
delete
Delete a repository webhook
patch
Update a repository webhook
get
Get a webhook configuration for a repository
patch
Update a webhook configuration for a repository
get
List deliveries for a repository webhook
get
Get a delivery for a repository webhook
post
Redeliver a delivery for a repository webhook
post
Ping a repository webhook
post
Test the push repository webhook
get
Check if immutable releases are enabled for a repository
put
Enable immutable releases
delete
Disable immutable releases
get
List repository invitations
delete
Delete a repository invitation
patch
Update a repository invitation
get
List issue types for a repository
get
List deploy keys
post
Create a deploy key
get
Get a deploy key
delete
Delete a deploy key
get
List repository languages
put
Enable Git LFS for a repository
delete
Disable Git LFS for a repository
post
Sync a fork branch with the upstream repository
post
Merge a branch
get
Get a GitHub Enterprise Cloud Pages site
put
Update information about a GitHub Enterprise Cloud Pages site
post
Create a GitHub Enterprise Cloud Pages site
delete
Delete a GitHub Enterprise Cloud Pages site
get
List GitHub Enterprise Cloud Pages builds
post
Request a GitHub Enterprise Cloud Pages build
get
Get latest Pages build
get
Get GitHub Enterprise Cloud Pages build
post
Create a GitHub Pages deployment
get
Get the status of a GitHub Pages deployment
post
Cancel a GitHub Pages deployment
get
Get a DNS health check for GitHub Pages
get
Check if private vulnerability reporting is enabled for a repository
put
Enable private vulnerability reporting for a repository
delete
Disable private vulnerability reporting for a repository
get
Get all custom property values for a repository
patch
Create or update custom property values for a repository
get
Get a repository README
get
Get a repository README for a directory
get
List releases
post
Create a release
get
Get a release asset
delete
Delete a release asset
patch
Update a release asset
post
Generate release notes content for a release
get
Get the latest release
get
Get a release by tag name
get
Get a release
delete
Delete a release
patch
Update a release
get
List release assets
post
Upload a release asset
get
Get rules for a branch
get
Get all repository rulesets
post
Create a repository ruleset
get
List repository rule suites
get
Get a repository rule suite
get
Get a repository ruleset
put
Update a repository ruleset
delete
Delete a repository ruleset
get
Get repository ruleset history
get
Get repository ruleset version
get
Get the weekly commit activity
get
Get the last year of commit activity
get
Get all contributor commit activity
get
Get the weekly commit count
get
Get the hourly commit count for each day
post
Create a commit status
get
List repository tags
get
Download a repository archive (tar)
get
List repository teams
get
Get all repository topics
put
Replace all repository topics
get
Get repository clones
get
Get top referral paths
get
Get top referral sources
get
Get page views
post
Transfer a repository
get
Check if vulnerability alerts are enabled for a repository
put
Enable vulnerability alerts
delete
Disable vulnerability alerts
get
Download a repository archive (zip)
post
Create a repository using a template
get
List public repositories
get
List repositories for the authenticated user
post
Create a repository for the authenticated user
get
List repository invitations for the authenticated user
delete
Decline a repository invitation
patch
Accept a repository invitation
get
List repositories for a user
scim
6
search
7
secret-scanning
35
security-advisories
10
server-statistics
1
teams
42
users
47
repos
Accept a repository invitation
patch
/user/repository_invitations/{invitation_id}
Path parameters
invitation_id
integer
required
The unique identifier of the invitation.
Response
Response