/
GI
github
/
GitHub v3 REST API
Search skmtc…
⌘K
Docs
Sign in
Sign in
APIs
Generators
Stacks
Projects
Docs
History
Schema
Sources
Checked 50m ago · Updated 3y ago
View markdown
github
GitHub v3 REST API
delete
Decline a repository invitation
v50
latest
OpenAPI 3.0.3
MIT
raw.githubusercontent.com
2024-01-03
828
596
10.0 MB
actions
116
activity
31
apps
29
billing
2
checks
12
code-scanning
11
codes-of-conduct
2
dependabot
14
dependency-graph
2
emojis
1
enterprise-admin
116
gists
20
git
13
gitignore
2
issues
40
licenses
3
markdown
2
meta
4
migrations
11
oauth-authorizations
10
oidc
2
orgs
39
projects
25
pulls
27
rate-limit
1
reactions
25
repos
160
get
List organization repositories
post
Create an organization repository
get
Get a repository
delete
Delete a repository
patch
Update a repository
get
List 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
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 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
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
List forks
post
Create a fork
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
List repository invitations
delete
Delete a repository invitation
patch
Update a repository invitation
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 Server Pages site
put
Update information about a GitHub Enterprise Server Pages site
post
Create a GitHub Enterprise Server Pages site
delete
Delete a GitHub Enterprise Server Pages site
get
List GitHub Enterprise Server Pages builds
post
Request a GitHub Enterprise Server Pages build
get
Get latest Pages build
get
Get GitHub Enterprise Server Pages build
post
Create a GitHub Pages deployment
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
List repository cache replication status
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
List tag protection states for a repository
post
Create a tag protection state for a repository
delete
Delete a tag protection state for a repository
get
Download a repository archive (tar)
get
List repository teams
get
Get all repository topics
put
Replace all repository topics
post
Transfer a repository
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
search
7
secret-scanning
6
teams
63
users
32
repos
Decline a repository invitation
delete
/user/repository_invitations/{invitation_id}
Path parameters
invitation_id
integer
required
The unique identifier of the invitation.
Response
Response