{"files":{"SKILL.md":"---\nname: github-v3-rest-api\ndescription: \"GitHub v3 REST API skill. Use when working with GitHub v3 REST for root, admin, app. Covers 828 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# GitHub v3 REST API\nAPI version: 1.1.4\n\n## Auth\nApiKey filter in query\n\n## Base URL\n{protocol}://{hostname}/api/v3\n\n## Setup\n1. Set your API key in the appropriate header\n2. GET / -- github api root\n3. POST /admin/hooks -- create first hook\n\n## Endpoints\n828 endpoints across 36 groups. See references/api-spec.lap for full details.\n\n### Root\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | / | GitHub API Root |\n\n### Admin\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /admin/hooks | List global webhooks |\n| POST | /admin/hooks | Create a global webhook |\n| GET | /admin/hooks/{hook_id} | Get a global webhook |\n| PATCH | /admin/hooks/{hook_id} | Update a global webhook |\n| DELETE | /admin/hooks/{hook_id} | Delete a global webhook |\n| POST | /admin/hooks/{hook_id}/pings | Ping a global webhook |\n| GET | /admin/keys | List public keys |\n| DELETE | /admin/keys/{key_ids} | Delete a public key |\n| PATCH | /admin/ldap/teams/{team_id}/mapping | Update LDAP mapping for a team |\n| POST | /admin/ldap/teams/{team_id}/sync | Sync LDAP mapping for a team |\n| PATCH | /admin/ldap/users/{username}/mapping | Update LDAP mapping for a user |\n| POST | /admin/ldap/users/{username}/sync | Sync LDAP mapping for a user |\n| POST | /admin/organizations | Create an organization |\n| PATCH | /admin/organizations/{org} | Update an organization name |\n| GET | /admin/pre-receive-environments | List pre-receive environments |\n| POST | /admin/pre-receive-environments | Create a pre-receive environment |\n| GET | /admin/pre-receive-environments/{pre_receive_environment_id} | Get a pre-receive environment |\n| PATCH | /admin/pre-receive-environments/{pre_receive_environment_id} | Update a pre-receive environment |\n| DELETE | /admin/pre-receive-environments/{pre_receive_environment_id} | Delete a pre-receive environment |\n| POST | /admin/pre-receive-environments/{pre_receive_environment_id}/downloads | Start a pre-receive environment download |\n| GET | /admin/pre-receive-environments/{pre_receive_environment_id}/downloads/latest | Get the download status for a pre-receive environment |\n| GET | /admin/pre-receive-hooks | List pre-receive hooks |\n| POST | /admin/pre-receive-hooks | Create a pre-receive hook |\n| GET | /admin/pre-receive-hooks/{pre_receive_hook_id} | Get a pre-receive hook |\n| PATCH | /admin/pre-receive-hooks/{pre_receive_hook_id} | Update a pre-receive hook |\n| DELETE | /admin/pre-receive-hooks/{pre_receive_hook_id} | Delete a pre-receive hook |\n| GET | /admin/tokens | List personal access tokens |\n| DELETE | /admin/tokens/{token_id} | Delete a personal access token |\n| POST | /admin/users | Create a user |\n| PATCH | /admin/users/{username} | Update the username for a user |\n| DELETE | /admin/users/{username} | Delete a user |\n| POST | /admin/users/{username}/authorizations | Create an impersonation OAuth token |\n| DELETE | /admin/users/{username}/authorizations | Delete an impersonation OAuth token |\n\n### App\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /app | Get the authenticated app |\n| GET | /app/hook/config | Get a webhook configuration for an app |\n| PATCH | /app/hook/config | Update a webhook configuration for an app |\n| GET | /app/hook/deliveries | List deliveries for an app webhook |\n| GET | /app/hook/deliveries/{delivery_id} | Get a delivery for an app webhook |\n| POST | /app/hook/deliveries/{delivery_id}/attempts | Redeliver a delivery for an app webhook |\n| GET | /app/installation-requests | List installation requests for the authenticated app |\n| GET | /app/installations | List installations for the authenticated app |\n| GET | /app/installations/{installation_id} | Get an installation for the authenticated app |\n| DELETE | /app/installations/{installation_id} | Delete an installation for the authenticated app |\n| POST | /app/installations/{installation_id}/access_tokens | Create an installation access token for an app |\n| PUT | /app/installations/{installation_id}/suspended | Suspend an app installation |\n| DELETE | /app/installations/{installation_id}/suspended | Unsuspend an app installation |\n\n### App-manifests\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /app-manifests/{code}/conversions | Create a GitHub App from a manifest |\n\n### Applications\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /applications/grants | List your grants |\n| GET | /applications/grants/{grant_id} | Get a single grant |\n| DELETE | /applications/grants/{grant_id} | Delete a grant |\n| DELETE | /applications/{client_id}/grant | Delete an app authorization |\n| POST | /applications/{client_id}/token | Check a token |\n| PATCH | /applications/{client_id}/token | Reset a token |\n| DELETE | /applications/{client_id}/token | Delete an app token |\n| POST | /applications/{client_id}/token/scoped | Create a scoped access token |\n\n### Apps\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /apps/{app_slug} | Get an app |\n\n### Authorizations\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /authorizations | List your authorizations |\n| POST | /authorizations | Create a new authorization |\n| PUT | /authorizations/clients/{client_id} | Get-or-create an authorization for a specific app |\n| PUT | /authorizations/clients/{client_id}/{fingerprint} | Get-or-create an authorization for a specific app and fingerprint |\n| GET | /authorizations/{authorization_id} | Get a single authorization |\n| PATCH | /authorizations/{authorization_id} | Update an existing authorization |\n| DELETE | /authorizations/{authorization_id} | Delete an authorization |\n\n### Codes_of_conduct\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /codes_of_conduct | Get all codes of conduct |\n| GET | /codes_of_conduct/{key} | Get a code of conduct |\n\n### Emojis\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /emojis | Get emojis |\n\n### Enterprise\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /enterprise/announcement | Get the global announcement banner |\n| PATCH | /enterprise/announcement | Set the global announcement banner |\n| DELETE | /enterprise/announcement | Remove the global announcement banner |\n| GET | /enterprise/settings/license | Get license information |\n| GET | /enterprise/stats/all | Get all statistics |\n| GET | /enterprise/stats/comments | Get comment statistics |\n| GET | /enterprise/stats/gists | Get gist statistics |\n| GET | /enterprise/stats/hooks | Get hooks statistics |\n| GET | /enterprise/stats/issues | Get issue statistics |\n| GET | /enterprise/stats/milestones | Get milestone statistics |\n| GET | /enterprise/stats/orgs | Get organization statistics |\n| GET | /enterprise/stats/pages | Get pages statistics |\n| GET | /enterprise/stats/pulls | Get pull request statistics |\n| GET | /enterprise/stats/repos | Get repository statistics |\n| GET | /enterprise/stats/users | Get users statistics |\n\n### Enterprises\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /enterprises/{enterprise}/actions/cache/usage | Get GitHub Actions cache usage for an enterprise |\n| GET | /enterprises/{enterprise}/actions/cache/usage-policy | Get GitHub Actions cache usage policy for an enterprise |\n| PATCH | /enterprises/{enterprise}/actions/cache/usage-policy | Set GitHub Actions cache usage policy for an enterprise |\n| GET | /enterprises/{enterprise}/actions/permissions | Get GitHub Actions permissions for an enterprise |\n| PUT | /enterprises/{enterprise}/actions/permissions | Set GitHub Actions permissions for an enterprise |\n| GET | /enterprises/{enterprise}/actions/permissions/organizations | List selected organizations enabled for GitHub Actions in an enterprise |\n| PUT | /enterprises/{enterprise}/actions/permissions/organizations | Set selected organizations enabled for GitHub Actions in an enterprise |\n| PUT | /enterprises/{enterprise}/actions/permissions/organizations/{org_id} | Enable a selected organization for GitHub Actions in an enterprise |\n| DELETE | /enterprises/{enterprise}/actions/permissions/organizations/{org_id} | Disable a selected organization for GitHub Actions in an enterprise |\n| GET | /enterprises/{enterprise}/actions/permissions/selected-actions | Get allowed actions for an enterprise |\n| PUT | /enterprises/{enterprise}/actions/permissions/selected-actions | Set allowed actions for an enterprise |\n| GET | /enterprises/{enterprise}/actions/permissions/workflow | Get default workflow permissions for an enterprise |\n| PUT | /enterprises/{enterprise}/actions/permissions/workflow | Set default workflow permissions for an enterprise |\n| GET | /enterprises/{enterprise}/actions/runner-groups | List self-hosted runner groups for an enterprise |\n| POST | /enterprises/{enterprise}/actions/runner-groups | Create a self-hosted runner group for an enterprise |\n| GET | /enterprises/{enterprise}/actions/runner-groups/{runner_group_id} | Get a self-hosted runner group for an enterprise |\n| PATCH | /enterprises/{enterprise}/actions/runner-groups/{runner_group_id} | Update a self-hosted runner group for an enterprise |\n| DELETE | /enterprises/{enterprise}/actions/runner-groups/{runner_group_id} | Delete a self-hosted runner group from an enterprise |\n| GET | /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations | List organization access to a self-hosted runner group in an enterprise |\n| PUT | /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations | Set organization access for a self-hosted runner group in an enterprise |\n| PUT | /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id} | Add organization access to a self-hosted runner group in an enterprise |\n| DELETE | /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id} | Remove organization access to a self-hosted runner group in an enterprise |\n| GET | /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners | List self-hosted runners in a group for an enterprise |\n| PUT | /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners | Set self-hosted runners in a group for an enterprise |\n| PUT | /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id} | Add a self-hosted runner to a group for an enterprise |\n| DELETE | /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id} | Remove a self-hosted runner from a group for an enterprise |\n| GET | /enterprises/{enterprise}/actions/runners | List self-hosted runners for an enterprise |\n| GET | /enterprises/{enterprise}/actions/runners/downloads | List runner applications for an enterprise |\n| POST | /enterprises/{enterprise}/actions/runners/registration-token | Create a registration token for an enterprise |\n| POST | /enterprises/{enterprise}/actions/runners/remove-token | Create a remove token for an enterprise |\n| GET | /enterprises/{enterprise}/actions/runners/{runner_id} | Get a self-hosted runner for an enterprise |\n| DELETE | /enterprises/{enterprise}/actions/runners/{runner_id} | Delete a self-hosted runner from an enterprise |\n| GET | /enterprises/{enterprise}/actions/runners/{runner_id}/labels | List labels for a self-hosted runner for an enterprise |\n| POST | /enterprises/{enterprise}/actions/runners/{runner_id}/labels | Add custom labels to a self-hosted runner for an enterprise |\n| PUT | /enterprises/{enterprise}/actions/runners/{runner_id}/labels | Set custom labels for a self-hosted runner for an enterprise |\n| DELETE | /enterprises/{enterprise}/actions/runners/{runner_id}/labels | Remove all custom labels from a self-hosted runner for an enterprise |\n| DELETE | /enterprises/{enterprise}/actions/runners/{runner_id}/labels/{name} | Remove a custom label from a self-hosted runner for an enterprise |\n| GET | /enterprises/{enterprise}/audit-log | Get the audit log for an enterprise |\n| GET | /enterprises/{enterprise}/code-scanning/alerts | List code scanning alerts for an enterprise |\n| GET | /enterprises/{enterprise}/secret-scanning/alerts | List secret scanning alerts for an enterprise |\n| GET | /enterprises/{enterprise}/settings/billing/advanced-security | Get GitHub Advanced Security active committers for an enterprise |\n\n### Events\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /events | List public events |\n\n### Feeds\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /feeds | Get feeds |\n\n### Gists\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /gists | List gists for the authenticated user |\n| POST | /gists | Create a gist |\n| GET | /gists/public | List public gists |\n| GET | /gists/starred | List starred gists |\n| GET | /gists/{gist_id} | Get a gist |\n| PATCH | /gists/{gist_id} | Update a gist |\n| DELETE | /gists/{gist_id} | Delete a gist |\n| GET | /gists/{gist_id}/comments | List gist comments |\n| POST | /gists/{gist_id}/comments | Create a gist comment |\n| GET | /gists/{gist_id}/comments/{comment_id} | Get a gist comment |\n| PATCH | /gists/{gist_id}/comments/{comment_id} | Update a gist comment |\n| DELETE | /gists/{gist_id}/comments/{comment_id} | Delete a gist comment |\n| GET | /gists/{gist_id}/commits | List gist commits |\n| GET | /gists/{gist_id}/forks | List gist forks |\n| POST | /gists/{gist_id}/forks | Fork a gist |\n| GET | /gists/{gist_id}/star | Check if a gist is starred |\n| PUT | /gists/{gist_id}/star | Star a gist |\n| DELETE | /gists/{gist_id}/star | Unstar a gist |\n| GET | /gists/{gist_id}/{sha} | Get a gist revision |\n\n### Gitignore\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /gitignore/templates | Get all gitignore templates |\n| GET | /gitignore/templates/{name} | Get a gitignore template |\n\n### Installation\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /installation/repositories | List repositories accessible to the app installation |\n| DELETE | /installation/token | Revoke an installation access token |\n\n### Issues\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /issues | List issues assigned to the authenticated user |\n\n### Licenses\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /licenses | Get all commonly used licenses |\n| GET | /licenses/{license} | Get a license |\n\n### Markdown\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /markdown | Render a Markdown document |\n| POST | /markdown/raw | Render a Markdown document in raw mode |\n\n### Meta\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /meta | Get GitHub Enterprise Server meta information |\n\n### Networks\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /networks/{owner}/{repo}/events | List public events for a network of repositories |\n\n### Notifications\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /notifications | List notifications for the authenticated user |\n| PUT | /notifications | Mark notifications as read |\n| GET | /notifications/threads/{thread_id} | Get a thread |\n| PATCH | /notifications/threads/{thread_id} | Mark a thread as read |\n| GET | /notifications/threads/{thread_id}/subscription | Get a thread subscription for the authenticated user |\n| PUT | /notifications/threads/{thread_id}/subscription | Set a thread subscription |\n| DELETE | /notifications/threads/{thread_id}/subscription | Delete a thread subscription |\n\n### Octocat\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /octocat | Get Octocat |\n\n### Organizations\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /organizations | List organizations |\n| GET | /organizations/{organization_id}/custom_roles | List custom repository roles in an organization |\n\n### Orgs\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /orgs/{org} | Get an organization |\n| PATCH | /orgs/{org} | Update an organization |\n| GET | /orgs/{org}/actions/cache/usage | Get GitHub Actions cache usage for an organization |\n| GET | /orgs/{org}/actions/cache/usage-by-repository | List repositories with GitHub Actions cache usage for an organization |\n| GET | /orgs/{org}/actions/oidc/customization/sub | Get the customization template for an OIDC subject claim for an organization |\n| PUT | /orgs/{org}/actions/oidc/customization/sub | Set the customization template for an OIDC subject claim for an organization |\n| GET | /orgs/{org}/actions/permissions | Get GitHub Actions permissions for an organization |\n| PUT | /orgs/{org}/actions/permissions | Set GitHub Actions permissions for an organization |\n| GET | /orgs/{org}/actions/permissions/repositories | List selected repositories enabled for GitHub Actions in an organization |\n| PUT | /orgs/{org}/actions/permissions/repositories | Set selected repositories enabled for GitHub Actions in an organization |\n| PUT | /orgs/{org}/actions/permissions/repositories/{repository_id} | Enable a selected repository for GitHub Actions in an organization |\n| DELETE | /orgs/{org}/actions/permissions/repositories/{repository_id} | Disable a selected repository for GitHub Actions in an organization |\n| GET | /orgs/{org}/actions/permissions/selected-actions | Get allowed actions for an organization |\n| PUT | /orgs/{org}/actions/permissions/selected-actions | Set allowed actions for an organization |\n| GET | /orgs/{org}/actions/permissions/workflow | Get default workflow permissions for an organization |\n| PUT | /orgs/{org}/actions/permissions/workflow | Set default workflow permissions for an organization |\n| GET | /orgs/{org}/actions/runner-groups | List self-hosted runner groups for an organization |\n| POST | /orgs/{org}/actions/runner-groups | Create a self-hosted runner group for an organization |\n| GET | /orgs/{org}/actions/runner-groups/{runner_group_id} | Get a self-hosted runner group for an organization |\n| PATCH | /orgs/{org}/actions/runner-groups/{runner_group_id} | Update a self-hosted runner group for an organization |\n| DELETE | /orgs/{org}/actions/runner-groups/{runner_group_id} | Delete a self-hosted runner group from an organization |\n| GET | /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories | List repository access to a self-hosted runner group in an organization |\n| PUT | /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories | Set repository access for a self-hosted runner group in an organization |\n| PUT | /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id} | Add repository access to a self-hosted runner group in an organization |\n| DELETE | /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id} | Remove repository access to a self-hosted runner group in an organization |\n| GET | /orgs/{org}/actions/runner-groups/{runner_group_id}/runners | List self-hosted runners in a group for an organization |\n| PUT | /orgs/{org}/actions/runner-groups/{runner_group_id}/runners | Set self-hosted runners in a group for an organization |\n| PUT | /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id} | Add a self-hosted runner to a group for an organization |\n| DELETE | /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id} | Remove a self-hosted runner from a group for an organization |\n| GET | /orgs/{org}/actions/runners | List self-hosted runners for an organization |\n| GET | /orgs/{org}/actions/runners/downloads | List runner applications for an organization |\n| POST | /orgs/{org}/actions/runners/registration-token | Create a registration token for an organization |\n| POST | /orgs/{org}/actions/runners/remove-token | Create a remove token for an organization |\n| GET | /orgs/{org}/actions/runners/{runner_id} | Get a self-hosted runner for an organization |\n| DELETE | /orgs/{org}/actions/runners/{runner_id} | Delete a self-hosted runner from an organization |\n| GET | /orgs/{org}/actions/runners/{runner_id}/labels | List labels for a self-hosted runner for an organization |\n| POST | /orgs/{org}/actions/runners/{runner_id}/labels | Add custom labels to a self-hosted runner for an organization |\n| PUT | /orgs/{org}/actions/runners/{runner_id}/labels | Set custom labels for a self-hosted runner for an organization |\n| DELETE | /orgs/{org}/actions/runners/{runner_id}/labels | Remove all custom labels from a self-hosted runner for an organization |\n| DELETE | /orgs/{org}/actions/runners/{runner_id}/labels/{name} | Remove a custom label from a self-hosted runner for an organization |\n| GET | /orgs/{org}/actions/secrets | List organization secrets |\n| GET | /orgs/{org}/actions/secrets/public-key | Get an organization public key |\n| GET | /orgs/{org}/actions/secrets/{secret_name} | Get an organization secret |\n| PUT | /orgs/{org}/actions/secrets/{secret_name} | Create or update an organization secret |\n| DELETE | /orgs/{org}/actions/secrets/{secret_name} | Delete an organization secret |\n| GET | /orgs/{org}/actions/secrets/{secret_name}/repositories | List selected repositories for an organization secret |\n| PUT | /orgs/{org}/actions/secrets/{secret_name}/repositories | Set selected repositories for an organization secret |\n| PUT | /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id} | Add selected repository to an organization secret |\n| DELETE | /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id} | Remove selected repository from an organization secret |\n| GET | /orgs/{org}/audit-log | Get the audit log for an organization |\n| GET | /orgs/{org}/code-scanning/alerts | List code scanning alerts for an organization |\n| GET | /orgs/{org}/dependabot/secrets | List organization secrets |\n| GET | /orgs/{org}/dependabot/secrets/public-key | Get an organization public key |\n| GET | /orgs/{org}/dependabot/secrets/{secret_name} | Get an organization secret |\n| PUT | /orgs/{org}/dependabot/secrets/{secret_name} | Create or update an organization secret |\n| DELETE | /orgs/{org}/dependabot/secrets/{secret_name} | Delete an organization secret |\n| GET | /orgs/{org}/dependabot/secrets/{secret_name}/repositories | List selected repositories for an organization secret |\n| PUT | /orgs/{org}/dependabot/secrets/{secret_name}/repositories | Set selected repositories for an organization secret |\n| PUT | /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id} | Add selected repository to an organization secret |\n| DELETE | /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id} | Remove selected repository from an organization secret |\n| GET | /orgs/{org}/events | List public organization events |\n| GET | /orgs/{org}/external-group/{group_id} | Get an external group |\n| GET | /orgs/{org}/external-groups | List external groups in an organization |\n| GET | /orgs/{org}/hooks | List organization webhooks |\n| POST | /orgs/{org}/hooks | Create an organization webhook |\n| GET | /orgs/{org}/hooks/{hook_id} | Get an organization webhook |\n| PATCH | /orgs/{org}/hooks/{hook_id} | Update an organization webhook |\n| DELETE | /orgs/{org}/hooks/{hook_id} | Delete an organization webhook |\n| GET | /orgs/{org}/hooks/{hook_id}/config | Get a webhook configuration for an organization |\n| PATCH | /orgs/{org}/hooks/{hook_id}/config | Update a webhook configuration for an organization |\n| GET | /orgs/{org}/hooks/{hook_id}/deliveries | List deliveries for an organization webhook |\n| GET | /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id} | Get a webhook delivery for an organization webhook |\n| POST | /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts | Redeliver a delivery for an organization webhook |\n| POST | /orgs/{org}/hooks/{hook_id}/pings | Ping an organization webhook |\n| GET | /orgs/{org}/installation | Get an organization installation for the authenticated app |\n| GET | /orgs/{org}/installations | List app installations for an organization |\n| GET | /orgs/{org}/issues | List organization issues assigned to the authenticated user |\n| GET | /orgs/{org}/members | List organization members |\n| GET | /orgs/{org}/members/{username} | Check organization membership for a user |\n| DELETE | /orgs/{org}/members/{username} | Remove an organization member |\n| GET | /orgs/{org}/memberships/{username} | Get organization membership for a user |\n| PUT | /orgs/{org}/memberships/{username} | Set organization membership for a user |\n| DELETE | /orgs/{org}/memberships/{username} | Remove organization membership for a user |\n| GET | /orgs/{org}/migrations | List organization migrations |\n| POST | /orgs/{org}/migrations | Start an organization migration |\n| GET | /orgs/{org}/migrations/{migration_id} | Get an organization migration status |\n| GET | /orgs/{org}/migrations/{migration_id}/archive | Download an organization migration archive |\n| DELETE | /orgs/{org}/migrations/{migration_id}/archive | Delete an organization migration archive |\n| DELETE | /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock | Unlock an organization repository |\n| GET | /orgs/{org}/migrations/{migration_id}/repositories | List repositories in an organization migration |\n| GET | /orgs/{org}/outside_collaborators | List outside collaborators for an organization |\n| PUT | /orgs/{org}/outside_collaborators/{username} | Convert an organization member to outside collaborator |\n| DELETE | /orgs/{org}/outside_collaborators/{username} | Remove outside collaborator from an organization |\n| GET | /orgs/{org}/pre-receive-hooks | List pre-receive hooks for an organization |\n| GET | /orgs/{org}/pre-receive-hooks/{pre_receive_hook_id} | Get a pre-receive hook for an organization |\n| PATCH | /orgs/{org}/pre-receive-hooks/{pre_receive_hook_id} | Update pre-receive hook enforcement for an organization |\n| DELETE | /orgs/{org}/pre-receive-hooks/{pre_receive_hook_id} | Remove pre-receive hook enforcement for an organization |\n| GET | /orgs/{org}/projects | List organization projects |\n| POST | /orgs/{org}/projects | Create an organization project |\n| GET | /orgs/{org}/public_members | List public organization members |\n| GET | /orgs/{org}/public_members/{username} | Check public organization membership for a user |\n| PUT | /orgs/{org}/public_members/{username} | Set public organization membership for the authenticated user |\n| DELETE | /orgs/{org}/public_members/{username} | Remove public organization membership for the authenticated user |\n| GET | /orgs/{org}/repos | List organization repositories |\n| POST | /orgs/{org}/repos | Create an organization repository |\n| GET | /orgs/{org}/secret-scanning/alerts | List secret scanning alerts for an organization |\n| GET | /orgs/{org}/security-managers | List security manager teams |\n| PUT | /orgs/{org}/security-managers/teams/{team_slug} | Add a security manager team |\n| DELETE | /orgs/{org}/security-managers/teams/{team_slug} | Remove a security manager team |\n| GET | /orgs/{org}/settings/billing/advanced-security | Get GitHub Advanced Security active committers for an organization |\n| GET | /orgs/{org}/teams | List teams |\n| POST | /orgs/{org}/teams | Create a team |\n| GET | /orgs/{org}/teams/{team_slug} | Get a team by name |\n| PATCH | /orgs/{org}/teams/{team_slug} | Update a team |\n| DELETE | /orgs/{org}/teams/{team_slug} | Delete a team |\n| GET | /orgs/{org}/teams/{team_slug}/discussions | List discussions |\n| POST | /orgs/{org}/teams/{team_slug}/discussions | Create a discussion |\n| GET | /orgs/{org}/teams/{team_slug}/discussions/{discussion_number} | Get a discussion |\n| PATCH | /orgs/{org}/teams/{team_slug}/discussions/{discussion_number} | Update a discussion |\n| DELETE | /orgs/{org}/teams/{team_slug}/discussions/{discussion_number} | Delete a discussion |\n| GET | /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments | List discussion comments |\n| POST | /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments | Create a discussion comment |\n| GET | /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number} | Get a discussion comment |\n| PATCH | /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number} | Update a discussion comment |\n| DELETE | /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number} | Delete a discussion comment |\n| GET | /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions | List reactions for a team discussion comment |\n| POST | /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions | Create reaction for a team discussion comment |\n| DELETE | /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id} | Delete team discussion comment reaction |\n| GET | /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions | List reactions for a team discussion |\n| POST | /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions | Create reaction for a team discussion |\n| DELETE | /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id} | Delete team discussion reaction |\n| GET | /orgs/{org}/teams/{team_slug}/external-groups | List a connection between an external group and a team |\n| PATCH | /orgs/{org}/teams/{team_slug}/external-groups | Update the connection between an external group and a team |\n| DELETE | /orgs/{org}/teams/{team_slug}/external-groups | Remove the connection between an external group and a team |\n| GET | /orgs/{org}/teams/{team_slug}/members | List team members |\n| GET | /orgs/{org}/teams/{team_slug}/memberships/{username} | Get team membership for a user |\n| PUT | /orgs/{org}/teams/{team_slug}/memberships/{username} | Add or update team membership for a user |\n| DELETE | /orgs/{org}/teams/{team_slug}/memberships/{username} | Remove team membership for a user |\n| GET | /orgs/{org}/teams/{team_slug}/projects | List team projects |\n| GET | /orgs/{org}/teams/{team_slug}/projects/{project_id} | Check team permissions for a project |\n| PUT | /orgs/{org}/teams/{team_slug}/projects/{project_id} | Add or update team project permissions |\n| DELETE | /orgs/{org}/teams/{team_slug}/projects/{project_id} | Remove a project from a team |\n| GET | /orgs/{org}/teams/{team_slug}/repos | List team repositories |\n| GET | /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo} | Check team permissions for a repository |\n| PUT | /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo} | Add or update team repository permissions |\n| DELETE | /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo} | Remove a repository from a team |\n| GET | /orgs/{org}/teams/{team_slug}/teams | List child teams |\n| POST | /orgs/{org}/{security_product}/{enablement} | Enable or disable a security feature for an organization |\n\n### Projects\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /projects/columns/cards/{card_id} | Get a project card |\n| PATCH | /projects/columns/cards/{card_id} | Update an existing project card |\n| DELETE | /projects/columns/cards/{card_id} | Delete a project card |\n| POST | /projects/columns/cards/{card_id}/moves | Move a project card |\n| GET | /projects/columns/{column_id} | Get a project column |\n| PATCH | /projects/columns/{column_id} | Update an existing project column |\n| DELETE | /projects/columns/{column_id} | Delete a project column |\n| GET | /projects/columns/{column_id}/cards | List project cards |\n| POST | /projects/columns/{column_id}/cards | Create a project card |\n| POST | /projects/columns/{column_id}/moves | Move a project column |\n| GET | /projects/{project_id} | Get a project |\n| PATCH | /projects/{project_id} | Update a project |\n| DELETE | /projects/{project_id} | Delete a project |\n| GET | /projects/{project_id}/collaborators | List project collaborators |\n| PUT | /projects/{project_id}/collaborators/{username} | Add project collaborator |\n| DELETE | /projects/{project_id}/collaborators/{username} | Remove user as a collaborator |\n| GET | /projects/{project_id}/collaborators/{username}/permission | Get project permission for a user |\n| GET | /projects/{project_id}/columns | List project columns |\n| POST | /projects/{project_id}/columns | Create a project column |\n\n### Rate_limit\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /rate_limit | Get rate limit status for the authenticated user |\n\n### Repos\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /repos/{owner}/{repo} | Get a repository |\n| PATCH | /repos/{owner}/{repo} | Update a repository |\n| DELETE | /repos/{owner}/{repo} | Delete a repository |\n| GET | /repos/{owner}/{repo}/actions/artifacts | List artifacts for a repository |\n| GET | /repos/{owner}/{repo}/actions/artifacts/{artifact_id} | Get an artifact |\n| DELETE | /repos/{owner}/{repo}/actions/artifacts/{artifact_id} | Delete an artifact |\n| GET | /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format} | Download an artifact |\n| GET | /repos/{owner}/{repo}/actions/cache/usage | Get GitHub Actions cache usage for a repository |\n| GET | /repos/{owner}/{repo}/actions/cache/usage-policy | Get GitHub Actions cache usage policy for a repository |\n| PATCH | /repos/{owner}/{repo}/actions/cache/usage-policy | Set GitHub Actions cache usage policy for a repository |\n| GET | /repos/{owner}/{repo}/actions/caches | List GitHub Actions caches for a repository |\n| DELETE | /repos/{owner}/{repo}/actions/caches | Delete GitHub Actions caches for a repository (using a cache key) |\n| DELETE | /repos/{owner}/{repo}/actions/caches/{cache_id} | Delete a GitHub Actions cache for a repository (using a cache ID) |\n| GET | /repos/{owner}/{repo}/actions/jobs/{job_id} | Get a job for a workflow run |\n| GET | /repos/{owner}/{repo}/actions/jobs/{job_id}/logs | Download job logs for a workflow run |\n| POST | /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun | Re-run a job from a workflow run |\n| GET | /repos/{owner}/{repo}/actions/oidc/customization/sub | Get the customization template for an OIDC subject claim for a repository |\n| PUT | /repos/{owner}/{repo}/actions/oidc/customization/sub | Set the customization template for an OIDC subject claim for a repository |\n| GET | /repos/{owner}/{repo}/actions/permissions | Get GitHub Actions permissions for a repository |\n| PUT | /repos/{owner}/{repo}/actions/permissions | Set GitHub Actions permissions for a repository |\n| GET | /repos/{owner}/{repo}/actions/permissions/access | Get the level of access for workflows outside of the repository |\n| PUT | /repos/{owner}/{repo}/actions/permissions/access | Set the level of access for workflows outside of the repository |\n| GET | /repos/{owner}/{repo}/actions/permissions/selected-actions | Get allowed actions for a repository |\n| PUT | /repos/{owner}/{repo}/actions/permissions/selected-actions | Set allowed actions for a repository |\n| GET | /repos/{owner}/{repo}/actions/permissions/workflow | Get default workflow permissions for a repository |\n| PUT | /repos/{owner}/{repo}/actions/permissions/workflow | Set default workflow permissions for a repository |\n| GET | /repos/{owner}/{repo}/actions/runners | List self-hosted runners for a repository |\n| GET | /repos/{owner}/{repo}/actions/runners/downloads | List runner applications for a repository |\n| POST | /repos/{owner}/{repo}/actions/runners/registration-token | Create a registration token for a repository |\n| POST | /repos/{owner}/{repo}/actions/runners/remove-token | Create a remove token for a repository |\n| GET | /repos/{owner}/{repo}/actions/runners/{runner_id} | Get a self-hosted runner for a repository |\n| DELETE | /repos/{owner}/{repo}/actions/runners/{runner_id} | Delete a self-hosted runner from a repository |\n| GET | /repos/{owner}/{repo}/actions/runners/{runner_id}/labels | List labels for a self-hosted runner for a repository |\n| POST | /repos/{owner}/{repo}/actions/runners/{runner_id}/labels | Add custom labels to a self-hosted runner for a repository |\n| PUT | /repos/{owner}/{repo}/actions/runners/{runner_id}/labels | Set custom labels for a self-hosted runner for a repository |\n| DELETE | /repos/{owner}/{repo}/actions/runners/{runner_id}/labels | Remove all custom labels from a self-hosted runner for a repository |\n| DELETE | /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name} | Remove a custom label from a self-hosted runner for a repository |\n| GET | /repos/{owner}/{repo}/actions/runs | List workflow runs for a repository |\n| GET | /repos/{owner}/{repo}/actions/runs/{run_id} | Get a workflow run |\n| DELETE | /repos/{owner}/{repo}/actions/runs/{run_id} | Delete a workflow run |\n| GET | /repos/{owner}/{repo}/actions/runs/{run_id}/approvals | Get the review history for a workflow run |\n| GET | /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts | List workflow run artifacts |\n| GET | /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number} | Get a workflow run attempt |\n| GET | /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs | List jobs for a workflow run attempt |\n| GET | /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs | Download workflow run attempt logs |\n| POST | /repos/{owner}/{repo}/actions/runs/{run_id}/cancel | Cancel a workflow run |\n| GET | /repos/{owner}/{repo}/actions/runs/{run_id}/jobs | List jobs for a workflow run |\n| GET | /repos/{owner}/{repo}/actions/runs/{run_id}/logs | Download workflow run logs |\n| DELETE | /repos/{owner}/{repo}/actions/runs/{run_id}/logs | Delete workflow run logs |\n| GET | /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments | Get pending deployments for a workflow run |\n| POST | /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments | Review pending deployments for a workflow run |\n| POST | /repos/{owner}/{repo}/actions/runs/{run_id}/rerun | Re-run a workflow |\n| POST | /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs | Re-run failed jobs from a workflow run |\n| GET | /repos/{owner}/{repo}/actions/secrets | List repository secrets |\n| GET | /repos/{owner}/{repo}/actions/secrets/public-key | Get a repository public key |\n| GET | /repos/{owner}/{repo}/actions/secrets/{secret_name} | Get a repository secret |\n| PUT | /repos/{owner}/{repo}/actions/secrets/{secret_name} | Create or update a repository secret |\n| DELETE | /repos/{owner}/{repo}/actions/secrets/{secret_name} | Delete a repository secret |\n| GET | /repos/{owner}/{repo}/actions/workflows | List repository workflows |\n| GET | /repos/{owner}/{repo}/actions/workflows/{workflow_id} | Get a workflow |\n| PUT | /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable | Disable a workflow |\n| POST | /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches | Create a workflow dispatch event |\n| PUT | /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable | Enable a workflow |\n| GET | /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs | List workflow runs for a workflow |\n| GET | /repos/{owner}/{repo}/assignees | List assignees |\n| GET | /repos/{owner}/{repo}/assignees/{assignee} | Check if a user can be assigned |\n| GET | /repos/{owner}/{repo}/autolinks | List all autolinks of a repository |\n| POST | /repos/{owner}/{repo}/autolinks | Create an autolink reference for a repository |\n| GET | /repos/{owner}/{repo}/autolinks/{autolink_id} | Get an autolink reference of a repository |\n| DELETE | /repos/{owner}/{repo}/autolinks/{autolink_id} | Delete an autolink reference from a repository |\n| GET | /repos/{owner}/{repo}/branches | List branches |\n| GET | /repos/{owner}/{repo}/branches/{branch} | Get a branch |\n| GET | /repos/{owner}/{repo}/branches/{branch}/protection | Get branch protection |\n| PUT | /repos/{owner}/{repo}/branches/{branch}/protection | Update branch protection |\n| DELETE | /repos/{owner}/{repo}/branches/{branch}/protection | Delete branch protection |\n| GET | /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins | Get admin branch protection |\n| POST | /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins | Set admin branch protection |\n| DELETE | /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins | Delete admin branch protection |\n| GET | /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews | Get pull request review protection |\n| PATCH | /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews | Update pull request review protection |\n| DELETE | /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews | Delete pull request review protection |\n| GET | /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures | Get commit signature protection |\n| POST | /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures | Create commit signature protection |\n| DELETE | /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures | Delete commit signature protection |\n| GET | /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks | Get status checks protection |\n| PATCH | /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks | Update status check protection |\n| DELETE | /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks | Remove status check protection |\n| GET | /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts | Get all status check contexts |\n| POST | /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts | Add status check contexts |\n| PUT | /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts | Set status check contexts |\n| DELETE | /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts | Remove status check contexts |\n| GET | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions | Get access restrictions |\n| DELETE | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions | Delete access restrictions |\n| GET | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps | Get apps with access to the protected branch |\n| POST | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps | Add app access restrictions |\n| PUT | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps | Set app access restrictions |\n| DELETE | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps | Remove app access restrictions |\n| GET | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams | Get teams with access to the protected branch |\n| POST | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams | Add team access restrictions |\n| PUT | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams | Set team access restrictions |\n| DELETE | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams | Remove team access restrictions |\n| GET | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users | Get users with access to the protected branch |\n| POST | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users | Add user access restrictions |\n| PUT | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users | Set user access restrictions |\n| DELETE | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users | Remove user access restrictions |\n| POST | /repos/{owner}/{repo}/branches/{branch}/rename | Rename a branch |\n| POST | /repos/{owner}/{repo}/check-runs | Create a check run |\n| GET | /repos/{owner}/{repo}/check-runs/{check_run_id} | Get a check run |\n| PATCH | /repos/{owner}/{repo}/check-runs/{check_run_id} | Update a check run |\n| GET | /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations | List check run annotations |\n| POST | /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest | Rerequest a check run |\n| POST | /repos/{owner}/{repo}/check-suites | Create a check suite |\n| PATCH | /repos/{owner}/{repo}/check-suites/preferences | Update repository preferences for check suites |\n| GET | /repos/{owner}/{repo}/check-suites/{check_suite_id} | Get a check suite |\n| GET | /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs | List check runs in a check suite |\n| POST | /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest | Rerequest a check suite |\n| GET | /repos/{owner}/{repo}/code-scanning/alerts | List code scanning alerts for a repository |\n| GET | /repos/{owner}/{repo}/code-scanning/alerts/{alert_number} | Get a code scanning alert |\n| PATCH | /repos/{owner}/{repo}/code-scanning/alerts/{alert_number} | Update a code scanning alert |\n| GET | /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances | List instances of a code scanning alert |\n| GET | /repos/{owner}/{repo}/code-scanning/analyses | List code scanning analyses for a repository |\n| GET | /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id} | Get a code scanning analysis for a repository |\n| DELETE | /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id} | Delete a code scanning analysis from a repository |\n| POST | /repos/{owner}/{repo}/code-scanning/sarifs | Upload an analysis as SARIF data |\n| GET | /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id} | Get information about a SARIF upload |\n| GET | /repos/{owner}/{repo}/codeowners/errors | List CODEOWNERS errors |\n| GET | /repos/{owner}/{repo}/collaborators | List repository collaborators |\n| GET | /repos/{owner}/{repo}/collaborators/{username} | Check if a user is a repository collaborator |\n| PUT | /repos/{owner}/{repo}/collaborators/{username} | Add a repository collaborator |\n| DELETE | /repos/{owner}/{repo}/collaborators/{username} | Remove a repository collaborator |\n| GET | /repos/{owner}/{repo}/collaborators/{username}/permission | Get repository permissions for a user |\n| GET | /repos/{owner}/{repo}/comments | List commit comments for a repository |\n| GET | /repos/{owner}/{repo}/comments/{comment_id} | Get a commit comment |\n| PATCH | /repos/{owner}/{repo}/comments/{comment_id} | Update a commit comment |\n| DELETE | /repos/{owner}/{repo}/comments/{comment_id} | Delete a commit comment |\n| GET | /repos/{owner}/{repo}/comments/{comment_id}/reactions | List reactions for a commit comment |\n| POST | /repos/{owner}/{repo}/comments/{comment_id}/reactions | Create reaction for a commit comment |\n| DELETE | /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id} | Delete a commit comment reaction |\n| GET | /repos/{owner}/{repo}/commits | List commits |\n| GET | /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head | List branches for HEAD commit |\n| GET | /repos/{owner}/{repo}/commits/{commit_sha}/comments | List commit comments |\n| POST | /repos/{owner}/{repo}/commits/{commit_sha}/comments | Create a commit comment |\n| GET | /repos/{owner}/{repo}/commits/{commit_sha}/pulls | List pull requests associated with a commit |\n| GET | /repos/{owner}/{repo}/commits/{ref} | Get a commit |\n| GET | /repos/{owner}/{repo}/commits/{ref}/check-runs | List check runs for a Git reference |\n| GET | /repos/{owner}/{repo}/commits/{ref}/check-suites | List check suites for a Git reference |\n| GET | /repos/{owner}/{repo}/commits/{ref}/status | Get the combined status for a specific reference |\n| GET | /repos/{owner}/{repo}/commits/{ref}/statuses | List commit statuses for a reference |\n| GET | /repos/{owner}/{repo}/compare/{basehead} | Compare two commits |\n| GET | /repos/{owner}/{repo}/contents/{path} | Get repository content |\n| PUT | /repos/{owner}/{repo}/contents/{path} | Create or update file contents |\n| DELETE | /repos/{owner}/{repo}/contents/{path} | Delete a file |\n| GET | /repos/{owner}/{repo}/contributors | List repository contributors |\n| GET | /repos/{owner}/{repo}/dependabot/secrets | List repository secrets |\n| GET | /repos/{owner}/{repo}/dependabot/secrets/public-key | Get a repository public key |\n| GET | /repos/{owner}/{repo}/dependabot/secrets/{secret_name} | Get a repository secret |\n| PUT | /repos/{owner}/{repo}/dependabot/secrets/{secret_name} | Create or update a repository secret |\n| DELETE | /repos/{owner}/{repo}/dependabot/secrets/{secret_name} | Delete a repository secret |\n| GET | /repos/{owner}/{repo}/dependency-graph/compare/{basehead} | Get a diff of the dependencies between commits |\n| POST | /repos/{owner}/{repo}/dependency-graph/snapshots | Create a snapshot of dependencies for a repository |\n| GET | /repos/{owner}/{repo}/deployments | List deployments |\n| POST | /repos/{owner}/{repo}/deployments | Create a deployment |\n| GET | /repos/{owner}/{repo}/deployments/{deployment_id} | Get a deployment |\n| DELETE | /repos/{owner}/{repo}/deployments/{deployment_id} | Delete a deployment |\n| GET | /repos/{owner}/{repo}/deployments/{deployment_id}/statuses | List deployment statuses |\n| POST | /repos/{owner}/{repo}/deployments/{deployment_id}/statuses | Create a deployment status |\n| GET | /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id} | Get a deployment status |\n| POST | /repos/{owner}/{repo}/dispatches | Create a repository dispatch event |\n| GET | /repos/{owner}/{repo}/environments | List environments |\n| GET | /repos/{owner}/{repo}/environments/{environment_name} | Get an environment |\n| PUT | /repos/{owner}/{repo}/environments/{environment_name} | Create or update an environment |\n| DELETE | /repos/{owner}/{repo}/environments/{environment_name} | Delete an environment |\n| GET | /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies | List deployment branch policies |\n| POST | /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies | Create a deployment branch policy |\n| GET | /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id} | Get a deployment branch policy |\n| PUT | /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id} | Update a deployment branch policy |\n| DELETE | /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id} | Delete a deployment branch policy |\n| GET | /repos/{owner}/{repo}/events | List repository events |\n| GET | /repos/{owner}/{repo}/forks | List forks |\n| POST | /repos/{owner}/{repo}/forks | Create a fork |\n| POST | /repos/{owner}/{repo}/git/blobs | Create a blob |\n| GET | /repos/{owner}/{repo}/git/blobs/{file_sha} | Get a blob |\n| POST | /repos/{owner}/{repo}/git/commits | Create a commit |\n| GET | /repos/{owner}/{repo}/git/commits/{commit_sha} | Get a commit object |\n| GET | /repos/{owner}/{repo}/git/matching-refs/{ref} | List matching references |\n| GET | /repos/{owner}/{repo}/git/ref/{ref} | Get a reference |\n| POST | /repos/{owner}/{repo}/git/refs | Create a reference |\n| PATCH | /repos/{owner}/{repo}/git/refs/{ref} | Update a reference |\n| DELETE | /repos/{owner}/{repo}/git/refs/{ref} | Delete a reference |\n| POST | /repos/{owner}/{repo}/git/tags | Create a tag object |\n| GET | /repos/{owner}/{repo}/git/tags/{tag_sha} | Get a tag |\n| POST | /repos/{owner}/{repo}/git/trees | Create a tree |\n| GET | /repos/{owner}/{repo}/git/trees/{tree_sha} | Get a tree |\n| GET | /repos/{owner}/{repo}/hooks | List repository webhooks |\n| POST | /repos/{owner}/{repo}/hooks | Create a repository webhook |\n| GET | /repos/{owner}/{repo}/hooks/{hook_id} | Get a repository webhook |\n| PATCH | /repos/{owner}/{repo}/hooks/{hook_id} | Update a repository webhook |\n| DELETE | /repos/{owner}/{repo}/hooks/{hook_id} | Delete a repository webhook |\n| GET | /repos/{owner}/{repo}/hooks/{hook_id}/config | Get a webhook configuration for a repository |\n| PATCH | /repos/{owner}/{repo}/hooks/{hook_id}/config | Update a webhook configuration for a repository |\n| GET | /repos/{owner}/{repo}/hooks/{hook_id}/deliveries | List deliveries for a repository webhook |\n| GET | /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id} | Get a delivery for a repository webhook |\n| POST | /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts | Redeliver a delivery for a repository webhook |\n| POST | /repos/{owner}/{repo}/hooks/{hook_id}/pings | Ping a repository webhook |\n| POST | /repos/{owner}/{repo}/hooks/{hook_id}/tests | Test the push repository webhook |\n| GET | /repos/{owner}/{repo}/installation | Get a repository installation for the authenticated app |\n| GET | /repos/{owner}/{repo}/invitations | List repository invitations |\n| PATCH | /repos/{owner}/{repo}/invitations/{invitation_id} | Update a repository invitation |\n| DELETE | /repos/{owner}/{repo}/invitations/{invitation_id} | Delete a repository invitation |\n| GET | /repos/{owner}/{repo}/issues | List repository issues |\n| POST | /repos/{owner}/{repo}/issues | Create an issue |\n| GET | /repos/{owner}/{repo}/issues/comments | List issue comments for a repository |\n| GET | /repos/{owner}/{repo}/issues/comments/{comment_id} | Get an issue comment |\n| PATCH | /repos/{owner}/{repo}/issues/comments/{comment_id} | Update an issue comment |\n| DELETE | /repos/{owner}/{repo}/issues/comments/{comment_id} | Delete an issue comment |\n| GET | /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions | List reactions for an issue comment |\n| POST | /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions | Create reaction for an issue comment |\n| DELETE | /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id} | Delete an issue comment reaction |\n| GET | /repos/{owner}/{repo}/issues/events | List issue events for a repository |\n| GET | /repos/{owner}/{repo}/issues/events/{event_id} | Get an issue event |\n| GET | /repos/{owner}/{repo}/issues/{issue_number} | Get an issue |\n| PATCH | /repos/{owner}/{repo}/issues/{issue_number} | Update an issue |\n| POST | /repos/{owner}/{repo}/issues/{issue_number}/assignees | Add assignees to an issue |\n| DELETE | /repos/{owner}/{repo}/issues/{issue_number}/assignees | Remove assignees from an issue |\n| GET | /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee} | Check if a user can be assigned to a issue |\n| GET | /repos/{owner}/{repo}/issues/{issue_number}/comments | List issue comments |\n| POST | /repos/{owner}/{repo}/issues/{issue_number}/comments | Create an issue comment |\n| GET | /repos/{owner}/{repo}/issues/{issue_number}/events | List issue events |\n| GET | /repos/{owner}/{repo}/issues/{issue_number}/labels | List labels for an issue |\n| POST | /repos/{owner}/{repo}/issues/{issue_number}/labels | Add labels to an issue |\n| PUT | /repos/{owner}/{repo}/issues/{issue_number}/labels | Set labels for an issue |\n| DELETE | /repos/{owner}/{repo}/issues/{issue_number}/labels | Remove all labels from an issue |\n| DELETE | /repos/{owner}/{repo}/issues/{issue_number}/labels/{name} | Remove a label from an issue |\n| PUT | /repos/{owner}/{repo}/issues/{issue_number}/lock | Lock an issue |\n| DELETE | /repos/{owner}/{repo}/issues/{issue_number}/lock | Unlock an issue |\n| GET | /repos/{owner}/{repo}/issues/{issue_number}/reactions | List reactions for an issue |\n| POST | /repos/{owner}/{repo}/issues/{issue_number}/reactions | Create reaction for an issue |\n| DELETE | /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id} | Delete an issue reaction |\n| GET | /repos/{owner}/{repo}/issues/{issue_number}/timeline | List timeline events for an issue |\n| GET | /repos/{owner}/{repo}/keys | List deploy keys |\n| POST | /repos/{owner}/{repo}/keys | Create a deploy key |\n| GET | /repos/{owner}/{repo}/keys/{key_id} | Get a deploy key |\n| DELETE | /repos/{owner}/{repo}/keys/{key_id} | Delete a deploy key |\n| GET | /repos/{owner}/{repo}/labels | List labels for a repository |\n| POST | /repos/{owner}/{repo}/labels | Create a label |\n| GET | /repos/{owner}/{repo}/labels/{name} | Get a label |\n| PATCH | /repos/{owner}/{repo}/labels/{name} | Update a label |\n| DELETE | /repos/{owner}/{repo}/labels/{name} | Delete a label |\n| GET | /repos/{owner}/{repo}/languages | List repository languages |\n| PUT | /repos/{owner}/{repo}/lfs | Enable Git LFS for a repository |\n| DELETE | /repos/{owner}/{repo}/lfs | Disable Git LFS for a repository |\n| GET | /repos/{owner}/{repo}/license | Get the license for a repository |\n| POST | /repos/{owner}/{repo}/merge-upstream | Sync a fork branch with the upstream repository |\n| POST | /repos/{owner}/{repo}/merges | Merge a branch |\n| GET | /repos/{owner}/{repo}/milestones | List milestones |\n| POST | /repos/{owner}/{repo}/milestones | Create a milestone |\n| GET | /repos/{owner}/{repo}/milestones/{milestone_number} | Get a milestone |\n| PATCH | /repos/{owner}/{repo}/milestones/{milestone_number} | Update a milestone |\n| DELETE | /repos/{owner}/{repo}/milestones/{milestone_number} | Delete a milestone |\n| GET | /repos/{owner}/{repo}/milestones/{milestone_number}/labels | List labels for issues in a milestone |\n| GET | /repos/{owner}/{repo}/notifications | List repository notifications for the authenticated user |\n| PUT | /repos/{owner}/{repo}/notifications | Mark repository notifications as read |\n| GET | /repos/{owner}/{repo}/pages | Get a GitHub Enterprise Server Pages site |\n| POST | /repos/{owner}/{repo}/pages | Create a GitHub Enterprise Server Pages site |\n| PUT | /repos/{owner}/{repo}/pages | Update information about a GitHub Enterprise Server Pages site |\n| DELETE | /repos/{owner}/{repo}/pages | Delete a GitHub Enterprise Server Pages site |\n| GET | /repos/{owner}/{repo}/pages/builds | List GitHub Enterprise Server Pages builds |\n| POST | /repos/{owner}/{repo}/pages/builds | Request a GitHub Enterprise Server Pages build |\n| GET | /repos/{owner}/{repo}/pages/builds/latest | Get latest Pages build |\n| GET | /repos/{owner}/{repo}/pages/builds/{build_id} | Get GitHub Enterprise Server Pages build |\n| POST | /repos/{owner}/{repo}/pages/deployment | Create a GitHub Pages deployment |\n| GET | /repos/{owner}/{repo}/pre-receive-hooks | List pre-receive hooks for a repository |\n| GET | /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id} | Get a pre-receive hook for a repository |\n| PATCH | /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id} | Update pre-receive hook enforcement for a repository |\n| DELETE | /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id} | Remove pre-receive hook enforcement for a repository |\n| GET | /repos/{owner}/{repo}/projects | List repository projects |\n| POST | /repos/{owner}/{repo}/projects | Create a repository project |\n| GET | /repos/{owner}/{repo}/pulls | List pull requests |\n| POST | /repos/{owner}/{repo}/pulls | Create a pull request |\n| GET | /repos/{owner}/{repo}/pulls/comments | List review comments in a repository |\n| GET | /repos/{owner}/{repo}/pulls/comments/{comment_id} | Get a review comment for a pull request |\n| PATCH | /repos/{owner}/{repo}/pulls/comments/{comment_id} | Update a review comment for a pull request |\n| DELETE | /repos/{owner}/{repo}/pulls/comments/{comment_id} | Delete a review comment for a pull request |\n| GET | /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions | List reactions for a pull request review comment |\n| POST | /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions | Create reaction for a pull request review comment |\n| DELETE | /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id} | Delete a pull request comment reaction |\n| GET | /repos/{owner}/{repo}/pulls/{pull_number} | Get a pull request |\n| PATCH | /repos/{owner}/{repo}/pulls/{pull_number} | Update a pull request |\n| GET | /repos/{owner}/{repo}/pulls/{pull_number}/comments | List review comments on a pull request |\n| POST | /repos/{owner}/{repo}/pulls/{pull_number}/comments | Create a review comment for a pull request |\n| POST | /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies | Create a reply for a review comment |\n| GET | /repos/{owner}/{repo}/pulls/{pull_number}/commits | List commits on a pull request |\n| GET | /repos/{owner}/{repo}/pulls/{pull_number}/files | List pull requests files |\n| GET | /repos/{owner}/{repo}/pulls/{pull_number}/merge | Check if a pull request has been merged |\n| PUT | /repos/{owner}/{repo}/pulls/{pull_number}/merge | Merge a pull request |\n| GET | /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers | Get all requested reviewers for a pull request |\n| POST | /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers | Request reviewers for a pull request |\n| DELETE | /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers | Remove requested reviewers from a pull request |\n| GET | /repos/{owner}/{repo}/pulls/{pull_number}/reviews | List reviews for a pull request |\n| POST | /repos/{owner}/{repo}/pulls/{pull_number}/reviews | Create a review for a pull request |\n| GET | /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id} | Get a review for a pull request |\n| PUT | /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id} | Update a review for a pull request |\n| DELETE | /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id} | Delete a pending review for a pull request |\n| GET | /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments | List comments for a pull request review |\n| PUT | /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals | Dismiss a review for a pull request |\n| POST | /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events | Submit a review for a pull request |\n| PUT | /repos/{owner}/{repo}/pulls/{pull_number}/update-branch | Update a pull request branch |\n| GET | /repos/{owner}/{repo}/readme | Get a repository README |\n| GET | /repos/{owner}/{repo}/readme/{dir} | Get a repository README for a directory |\n| GET | /repos/{owner}/{repo}/releases | List releases |\n| POST | /repos/{owner}/{repo}/releases | Create a release |\n| GET | /repos/{owner}/{repo}/releases/assets/{asset_id} | Get a release asset |\n| PATCH | /repos/{owner}/{repo}/releases/assets/{asset_id} | Update a release asset |\n| DELETE | /repos/{owner}/{repo}/releases/assets/{asset_id} | Delete a release asset |\n| POST | /repos/{owner}/{repo}/releases/generate-notes | Generate release notes content for a release |\n| GET | /repos/{owner}/{repo}/releases/latest | Get the latest release |\n| GET | /repos/{owner}/{repo}/releases/tags/{tag} | Get a release by tag name |\n| GET | /repos/{owner}/{repo}/releases/{release_id} | Get a release |\n| PATCH | /repos/{owner}/{repo}/releases/{release_id} | Update a release |\n| DELETE | /repos/{owner}/{repo}/releases/{release_id} | Delete a release |\n| GET | /repos/{owner}/{repo}/releases/{release_id}/assets | List release assets |\n| POST | /repos/{owner}/{repo}/releases/{release_id}/assets | Upload a release asset |\n| GET | /repos/{owner}/{repo}/releases/{release_id}/reactions | List reactions for a release |\n| POST | /repos/{owner}/{repo}/releases/{release_id}/reactions | Create reaction for a release |\n| DELETE | /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id} | Delete a release reaction |\n| GET | /repos/{owner}/{repo}/replicas/caches | List repository cache replication status |\n| GET | /repos/{owner}/{repo}/secret-scanning/alerts | List secret scanning alerts for a repository |\n| GET | /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number} | Get a secret scanning alert |\n| PATCH | /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number} | Update a secret scanning alert |\n| GET | /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations | List locations for a secret scanning alert |\n| GET | /repos/{owner}/{repo}/stargazers | List stargazers |\n| GET | /repos/{owner}/{repo}/stats/code_frequency | Get the weekly commit activity |\n| GET | /repos/{owner}/{repo}/stats/commit_activity | Get the last year of commit activity |\n| GET | /repos/{owner}/{repo}/stats/contributors | Get all contributor commit activity |\n| GET | /repos/{owner}/{repo}/stats/participation | Get the weekly commit count |\n| GET | /repos/{owner}/{repo}/stats/punch_card | Get the hourly commit count for each day |\n| POST | /repos/{owner}/{repo}/statuses/{sha} | Create a commit status |\n| GET | /repos/{owner}/{repo}/subscribers | List watchers |\n| GET | /repos/{owner}/{repo}/subscription | Get a repository subscription |\n| PUT | /repos/{owner}/{repo}/subscription | Set a repository subscription |\n| DELETE | /repos/{owner}/{repo}/subscription | Delete a repository subscription |\n| GET | /repos/{owner}/{repo}/tags | List repository tags |\n| GET | /repos/{owner}/{repo}/tags/protection | List tag protection states for a repository |\n| POST | /repos/{owner}/{repo}/tags/protection | Create a tag protection state for a repository |\n| DELETE | /repos/{owner}/{repo}/tags/protection/{tag_protection_id} | Delete a tag protection state for a repository |\n| GET | /repos/{owner}/{repo}/tarball/{ref} | Download a repository archive (tar) |\n| GET | /repos/{owner}/{repo}/teams | List repository teams |\n| GET | /repos/{owner}/{repo}/topics | Get all repository topics |\n| PUT | /repos/{owner}/{repo}/topics | Replace all repository topics |\n| POST | /repos/{owner}/{repo}/transfer | Transfer a repository |\n| GET | /repos/{owner}/{repo}/zipball/{ref} | Download a repository archive (zip) |\n| POST | /repos/{template_owner}/{template_repo}/generate | Create a repository using a template |\n\n### Repositories\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /repositories | List public repositories |\n| GET | /repositories/{repository_id}/environments/{environment_name}/secrets | List environment secrets |\n| GET | /repositories/{repository_id}/environments/{environment_name}/secrets/public-key | Get an environment public key |\n| GET | /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name} | Get an environment secret |\n| PUT | /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name} | Create or update an environment secret |\n| DELETE | /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name} | Delete an environment secret |\n\n### Scim\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /scim/v2/Groups | List provisioned SCIM groups for an enterprise |\n| POST | /scim/v2/Groups | Provision a SCIM enterprise group |\n| GET | /scim/v2/Groups/{scim_group_id} | Get SCIM provisioning information for an enterprise group |\n| PUT | /scim/v2/Groups/{scim_group_id} | Set SCIM information for a provisioned enterprise group |\n| PATCH | /scim/v2/Groups/{scim_group_id} | Update an attribute for a SCIM enterprise group |\n| DELETE | /scim/v2/Groups/{scim_group_id} | Delete a SCIM group from an enterprise |\n| GET | /scim/v2/Users | List SCIM provisioned identities for an enterprise |\n| POST | /scim/v2/Users | Provision a SCIM enterprise user |\n| GET | /scim/v2/Users/{scim_user_id} | Get SCIM provisioning information for an enterprise user |\n| PUT | /scim/v2/Users/{scim_user_id} | Set SCIM information for a provisioned enterprise user |\n| PATCH | /scim/v2/Users/{scim_user_id} | Update an attribute for a SCIM enterprise user |\n| DELETE | /scim/v2/Users/{scim_user_id} | Delete a SCIM user from an enterprise |\n\n### Search\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /search/code | Search code |\n| GET | /search/commits | Search commits |\n| GET | /search/issues | Search issues and pull requests |\n| GET | /search/labels | Search labels |\n| GET | /search/repositories | Search repositories |\n| GET | /search/topics | Search topics |\n| GET | /search/users | Search users |\n\n### Setup\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /setup/api/configcheck | Get the configuration status |\n| POST | /setup/api/configure | Start a configuration process |\n| GET | /setup/api/maintenance | Get the maintenance status |\n| POST | /setup/api/maintenance | Enable or disable maintenance mode |\n| GET | /setup/api/settings | Get settings |\n| PUT | /setup/api/settings | Set settings |\n| GET | /setup/api/settings/authorized-keys | Get all authorized SSH keys |\n| POST | /setup/api/settings/authorized-keys | Add an authorized SSH key |\n| DELETE | /setup/api/settings/authorized-keys | Remove an authorized SSH key |\n| POST | /setup/api/start | Create a GitHub license |\n| POST | /setup/api/upgrade | Upgrade a license |\n\n### Teams\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /teams/{team_id} | Get a team (Legacy) |\n| PATCH | /teams/{team_id} | Update a team (Legacy) |\n| DELETE | /teams/{team_id} | Delete a team (Legacy) |\n| GET | /teams/{team_id}/discussions | List discussions (Legacy) |\n| POST | /teams/{team_id}/discussions | Create a discussion (Legacy) |\n| GET | /teams/{team_id}/discussions/{discussion_number} | Get a discussion (Legacy) |\n| PATCH | /teams/{team_id}/discussions/{discussion_number} | Update a discussion (Legacy) |\n| DELETE | /teams/{team_id}/discussions/{discussion_number} | Delete a discussion (Legacy) |\n| GET | /teams/{team_id}/discussions/{discussion_number}/comments | List discussion comments (Legacy) |\n| POST | /teams/{team_id}/discussions/{discussion_number}/comments | Create a discussion comment (Legacy) |\n| GET | /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number} | Get a discussion comment (Legacy) |\n| PATCH | /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number} | Update a discussion comment (Legacy) |\n| DELETE | /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number} | Delete a discussion comment (Legacy) |\n| GET | /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions | List reactions for a team discussion comment (Legacy) |\n| POST | /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions | Create reaction for a team discussion comment (Legacy) |\n| GET | /teams/{team_id}/discussions/{discussion_number}/reactions | List reactions for a team discussion (Legacy) |\n| POST | /teams/{team_id}/discussions/{discussion_number}/reactions | Create reaction for a team discussion (Legacy) |\n| GET | /teams/{team_id}/members | List team members (Legacy) |\n| GET | /teams/{team_id}/members/{username} | Get team member (Legacy) |\n| PUT | /teams/{team_id}/members/{username} | Add team member (Legacy) |\n| DELETE | /teams/{team_id}/members/{username} | Remove team member (Legacy) |\n| GET | /teams/{team_id}/memberships/{username} | Get team membership for a user (Legacy) |\n| PUT | /teams/{team_id}/memberships/{username} | Add or update team membership for a user (Legacy) |\n| DELETE | /teams/{team_id}/memberships/{username} | Remove team membership for a user (Legacy) |\n| GET | /teams/{team_id}/projects | List team projects (Legacy) |\n| GET | /teams/{team_id}/projects/{project_id} | Check team permissions for a project (Legacy) |\n| PUT | /teams/{team_id}/projects/{project_id} | Add or update team project permissions (Legacy) |\n| DELETE | /teams/{team_id}/projects/{project_id} | Remove a project from a team (Legacy) |\n| GET | /teams/{team_id}/repos | List team repositories (Legacy) |\n| GET | /teams/{team_id}/repos/{owner}/{repo} | Check team permissions for a repository (Legacy) |\n| PUT | /teams/{team_id}/repos/{owner}/{repo} | Add or update team repository permissions (Legacy) |\n| DELETE | /teams/{team_id}/repos/{owner}/{repo} | Remove a repository from a team (Legacy) |\n| GET | /teams/{team_id}/teams | List child teams (Legacy) |\n\n### User\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /user | Get the authenticated user |\n| PATCH | /user | Update the authenticated user |\n| GET | /user/emails | List email addresses for the authenticated user |\n| POST | /user/emails | Add an email address for the authenticated user |\n| DELETE | /user/emails | Delete an email address for the authenticated user |\n| GET | /user/followers | List followers of the authenticated user |\n| GET | /user/following | List the people the authenticated user follows |\n| GET | /user/following/{username} | Check if a person is followed by the authenticated user |\n| PUT | /user/following/{username} | Follow a user |\n| DELETE | /user/following/{username} | Unfollow a user |\n| GET | /user/gpg_keys | List GPG keys for the authenticated user |\n| POST | /user/gpg_keys | Create a GPG key for the authenticated user |\n| GET | /user/gpg_keys/{gpg_key_id} | Get a GPG key for the authenticated user |\n| DELETE | /user/gpg_keys/{gpg_key_id} | Delete a GPG key for the authenticated user |\n| GET | /user/installations | List app installations accessible to the user access token |\n| GET | /user/installations/{installation_id}/repositories | List repositories accessible to the user access token |\n| PUT | /user/installations/{installation_id}/repositories/{repository_id} | Add a repository to an app installation |\n| DELETE | /user/installations/{installation_id}/repositories/{repository_id} | Remove a repository from an app installation |\n| GET | /user/issues | List user account issues assigned to the authenticated user |\n| GET | /user/keys | List public SSH keys for the authenticated user |\n| POST | /user/keys | Create a public SSH key for the authenticated user |\n| GET | /user/keys/{key_id} | Get a public SSH key for the authenticated user |\n| DELETE | /user/keys/{key_id} | Delete a public SSH key for the authenticated user |\n| GET | /user/memberships/orgs | List organization memberships for the authenticated user |\n| GET | /user/memberships/orgs/{org} | Get an organization membership for the authenticated user |\n| PATCH | /user/memberships/orgs/{org} | Update an organization membership for the authenticated user |\n| GET | /user/migrations | List user migrations |\n| POST | /user/migrations | Start a user migration |\n| GET | /user/migrations/{migration_id}/archive | Download a user migration archive |\n| GET | /user/migrations/{migration_id}/repositories | List repositories for a user migration |\n| GET | /user/orgs | List organizations for the authenticated user |\n| POST | /user/projects | Create a user project |\n| GET | /user/public_emails | List public email addresses for the authenticated user |\n| GET | /user/repos | List repositories for the authenticated user |\n| POST | /user/repos | Create a repository for the authenticated user |\n| GET | /user/repository_invitations | List repository invitations for the authenticated user |\n| PATCH | /user/repository_invitations/{invitation_id} | Accept a repository invitation |\n| DELETE | /user/repository_invitations/{invitation_id} | Decline a repository invitation |\n| GET | /user/ssh_signing_keys | List SSH signing keys for the authenticated user |\n| POST | /user/ssh_signing_keys | Create a SSH signing key for the authenticated user |\n| GET | /user/ssh_signing_keys/{ssh_signing_key_id} | Get an SSH signing key for the authenticated user |\n| DELETE | /user/ssh_signing_keys/{ssh_signing_key_id} | Delete an SSH signing key for the authenticated user |\n| GET | /user/starred | List repositories starred by the authenticated user |\n| GET | /user/starred/{owner}/{repo} | Check if a repository is starred by the authenticated user |\n| PUT | /user/starred/{owner}/{repo} | Star a repository for the authenticated user |\n| DELETE | /user/starred/{owner}/{repo} | Unstar a repository for the authenticated user |\n| GET | /user/subscriptions | List repositories watched by the authenticated user |\n| GET | /user/teams | List teams for the authenticated user |\n\n### Users\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /users | List users |\n| GET | /users/{username} | Get a user |\n| GET | /users/{username}/events | List events for the authenticated user |\n| GET | /users/{username}/events/orgs/{org} | List organization events for the authenticated user |\n| GET | /users/{username}/events/public | List public events for a user |\n| GET | /users/{username}/followers | List followers of a user |\n| GET | /users/{username}/following | List the people a user follows |\n| GET | /users/{username}/following/{target_user} | Check if a user follows another user |\n| GET | /users/{username}/gists | List gists for a user |\n| GET | /users/{username}/gpg_keys | List GPG keys for a user |\n| GET | /users/{username}/hovercard | Get contextual information for a user |\n| GET | /users/{username}/installation | Get a user installation for the authenticated app |\n| GET | /users/{username}/keys | List public keys for a user |\n| GET | /users/{username}/orgs | List organizations for a user |\n| GET | /users/{username}/projects | List user projects |\n| GET | /users/{username}/received_events | List events received by the authenticated user |\n| GET | /users/{username}/received_events/public | List public events received by a user |\n| GET | /users/{username}/repos | List repositories for a user |\n| PUT | /users/{username}/site_admin | Promote a user to be a site administrator |\n| DELETE | /users/{username}/site_admin | Demote a site administrator |\n| GET | /users/{username}/ssh_signing_keys | List SSH signing keys for a user |\n| GET | /users/{username}/starred | List repositories starred by a user |\n| GET | /users/{username}/subscriptions | List repositories watched by a user |\n| PUT | /users/{username}/suspended | Suspend a user |\n| DELETE | /users/{username}/suspended | Unsuspend a user |\n\n### Zen\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /zen | Get the Zen of GitHub |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"List all resource?\" -> GET /\n- \"List all hooks?\" -> GET /admin/hooks\n- \"Create a hook?\" -> POST /admin/hooks\n- \"Get hook details?\" -> GET /admin/hooks/{hook_id}\n- \"Partially update a hook?\" -> PATCH /admin/hooks/{hook_id}\n- \"Delete a hook?\" -> DELETE /admin/hooks/{hook_id}\n- \"Create a ping?\" -> POST /admin/hooks/{hook_id}/pings\n- \"List all keys?\" -> GET /admin/keys\n- \"Delete a key?\" -> DELETE /admin/keys/{key_ids}\n- \"Create a sync?\" -> POST /admin/ldap/teams/{team_id}/sync\n- \"Create a organization?\" -> POST /admin/organizations\n- \"Partially update a organization?\" -> PATCH /admin/organizations/{org}\n- \"List all pre-receive-environments?\" -> GET /admin/pre-receive-environments\n- \"Create a pre-receive-environment?\" -> POST /admin/pre-receive-environments\n- \"Get pre-receive-environment details?\" -> GET /admin/pre-receive-environments/{pre_receive_environment_id}\n- \"Partially update a pre-receive-environment?\" -> PATCH /admin/pre-receive-environments/{pre_receive_environment_id}\n- \"Delete a pre-receive-environment?\" -> DELETE /admin/pre-receive-environments/{pre_receive_environment_id}\n- \"Create a download?\" -> POST /admin/pre-receive-environments/{pre_receive_environment_id}/downloads\n- \"List all latest?\" -> GET /admin/pre-receive-environments/{pre_receive_environment_id}/downloads/latest\n- \"List all pre-receive-hooks?\" -> GET /admin/pre-receive-hooks\n- \"Create a pre-receive-hook?\" -> POST /admin/pre-receive-hooks\n- \"Get pre-receive-hook details?\" -> GET /admin/pre-receive-hooks/{pre_receive_hook_id}\n- \"Partially update a pre-receive-hook?\" -> PATCH /admin/pre-receive-hooks/{pre_receive_hook_id}\n- \"Delete a pre-receive-hook?\" -> DELETE /admin/pre-receive-hooks/{pre_receive_hook_id}\n- \"List all tokens?\" -> GET /admin/tokens\n- \"Delete a token?\" -> DELETE /admin/tokens/{token_id}\n- \"Create a user?\" -> POST /admin/users\n- \"Partially update a user?\" -> PATCH /admin/users/{username}\n- \"Delete a user?\" -> DELETE /admin/users/{username}\n- \"Create a authorization?\" -> POST /admin/users/{username}/authorizations\n- \"List all app?\" -> GET /app\n- \"Create a conversion?\" -> POST /app-manifests/{code}/conversions\n- \"List all config?\" -> GET /app/hook/config\n- \"List all deliveries?\" -> GET /app/hook/deliveries\n- \"Get delivery details?\" -> GET /app/hook/deliveries/{delivery_id}\n- \"Create a attempt?\" -> POST /app/hook/deliveries/{delivery_id}/attempts\n- \"List all installation-requests?\" -> GET /app/installation-requests\n- \"List all installations?\" -> GET /app/installations\n- \"Get installation details?\" -> GET /app/installations/{installation_id}\n- \"Delete a installation?\" -> DELETE /app/installations/{installation_id}\n- \"Create a access_token?\" -> POST /app/installations/{installation_id}/access_tokens\n- \"List all grants?\" -> GET /applications/grants\n- \"Get grant details?\" -> GET /applications/grants/{grant_id}\n- \"Delete a grant?\" -> DELETE /applications/grants/{grant_id}\n- \"Create a token?\" -> POST /applications/{client_id}/token\n- \"Create a scoped?\" -> POST /applications/{client_id}/token/scoped\n- \"Get app details?\" -> GET /apps/{app_slug}\n- \"List all authorizations?\" -> GET /authorizations\n- \"Update a client?\" -> PUT /authorizations/clients/{client_id}\n- \"Get authorization details?\" -> GET /authorizations/{authorization_id}\n- \"Partially update a authorization?\" -> PATCH /authorizations/{authorization_id}\n- \"Delete a authorization?\" -> DELETE /authorizations/{authorization_id}\n- \"List all codes_of_conduct?\" -> GET /codes_of_conduct\n- \"Get codes_of_conduct details?\" -> GET /codes_of_conduct/{key}\n- \"List all emojis?\" -> GET /emojis\n- \"List all announcement?\" -> GET /enterprise/announcement\n- \"List all license?\" -> GET /enterprise/settings/license\n- \"List all all?\" -> GET /enterprise/stats/all\n- \"List all comments?\" -> GET /enterprise/stats/comments\n- \"List all gists?\" -> GET /enterprise/stats/gists\n- \"List all issues?\" -> GET /enterprise/stats/issues\n- \"List all milestones?\" -> GET /enterprise/stats/milestones\n- \"List all orgs?\" -> GET /enterprise/stats/orgs\n- \"List all pages?\" -> GET /enterprise/stats/pages\n- \"List all pulls?\" -> GET /enterprise/stats/pulls\n- \"List all repos?\" -> GET /enterprise/stats/repos\n- \"List all users?\" -> GET /enterprise/stats/users\n- \"List all usage?\" -> GET /enterprises/{enterprise}/actions/cache/usage\n- \"List all usage-policy?\" -> GET /enterprises/{enterprise}/actions/cache/usage-policy\n- \"List all permissions?\" -> GET /enterprises/{enterprise}/actions/permissions\n- \"List all organizations?\" -> GET /enterprises/{enterprise}/actions/permissions/organizations\n- \"Update a organization?\" -> PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}\n- \"Delete a organization?\" -> DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}\n- \"List all selected-actions?\" -> GET /enterprises/{enterprise}/actions/permissions/selected-actions\n- \"List all workflow?\" -> GET /enterprises/{enterprise}/actions/permissions/workflow\n- \"List all runner-groups?\" -> GET /enterprises/{enterprise}/actions/runner-groups\n- \"Create a runner-group?\" -> POST /enterprises/{enterprise}/actions/runner-groups\n- \"Get runner-group details?\" -> GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}\n- \"Partially update a runner-group?\" -> PATCH /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}\n- \"Delete a runner-group?\" -> DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}\n- \"List all runners?\" -> GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners\n- \"Update a runner?\" -> PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}\n- \"Delete a runner?\" -> DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}\n- \"List all downloads?\" -> GET /enterprises/{enterprise}/actions/runners/downloads\n- \"Create a registration-token?\" -> POST /enterprises/{enterprise}/actions/runners/registration-token\n- \"Create a remove-token?\" -> POST /enterprises/{enterprise}/actions/runners/remove-token\n- \"Get runner details?\" -> GET /enterprises/{enterprise}/actions/runners/{runner_id}\n- \"List all labels?\" -> GET /enterprises/{enterprise}/actions/runners/{runner_id}/labels\n- \"Create a label?\" -> POST /enterprises/{enterprise}/actions/runners/{runner_id}/labels\n- \"Delete a label?\" -> DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels/{name}\n- \"List all audit-log?\" -> GET /enterprises/{enterprise}/audit-log\n- \"List all alerts?\" -> GET /enterprises/{enterprise}/code-scanning/alerts\n- \"List all advanced-security?\" -> GET /enterprises/{enterprise}/settings/billing/advanced-security\n- \"List all events?\" -> GET /events\n- \"List all feeds?\" -> GET /feeds\n- \"Create a gist?\" -> POST /gists\n- \"List all public?\" -> GET /gists/public\n- \"List all starred?\" -> GET /gists/starred\n- \"Get gist details?\" -> GET /gists/{gist_id}\n- \"Partially update a gist?\" -> PATCH /gists/{gist_id}\n- \"Delete a gist?\" -> DELETE /gists/{gist_id}\n- \"Create a comment?\" -> POST /gists/{gist_id}/comments\n- \"Get comment details?\" -> GET /gists/{gist_id}/comments/{comment_id}\n- \"Partially update a comment?\" -> PATCH /gists/{gist_id}/comments/{comment_id}\n- \"Delete a comment?\" -> DELETE /gists/{gist_id}/comments/{comment_id}\n- \"List all commits?\" -> GET /gists/{gist_id}/commits\n- \"List all forks?\" -> GET /gists/{gist_id}/forks\n- \"Create a fork?\" -> POST /gists/{gist_id}/forks\n- \"List all star?\" -> GET /gists/{gist_id}/star\n- \"List all templates?\" -> GET /gitignore/templates\n- \"Get template details?\" -> GET /gitignore/templates/{name}\n- \"List all repositories?\" -> GET /installation/repositories\n- \"List all licenses?\" -> GET /licenses\n- \"Get license details?\" -> GET /licenses/{license}\n- \"Create a markdown?\" -> POST /markdown\n- \"Create a raw?\" -> POST /markdown/raw\n- \"List all meta?\" -> GET /meta\n- \"List all notifications?\" -> GET /notifications\n- \"Get thread details?\" -> GET /notifications/threads/{thread_id}\n- \"Partially update a thread?\" -> PATCH /notifications/threads/{thread_id}\n- \"List all subscription?\" -> GET /notifications/threads/{thread_id}/subscription\n- \"List all octocat?\" -> GET /octocat\n- \"List all custom_roles?\" -> GET /organizations/{organization_id}/custom_roles\n- \"Get org details?\" -> GET /orgs/{org}\n- \"Partially update a org?\" -> PATCH /orgs/{org}\n- \"List all usage-by-repository?\" -> GET /orgs/{org}/actions/cache/usage-by-repository\n- \"List all sub?\" -> GET /orgs/{org}/actions/oidc/customization/sub\n- \"Update a repository?\" -> PUT /orgs/{org}/actions/permissions/repositories/{repository_id}\n- \"Delete a repository?\" -> DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}\n- \"List all secrets?\" -> GET /orgs/{org}/actions/secrets\n- \"List all public-key?\" -> GET /orgs/{org}/actions/secrets/public-key\n- \"Get secret details?\" -> GET /orgs/{org}/actions/secrets/{secret_name}\n- \"Update a secret?\" -> PUT /orgs/{org}/actions/secrets/{secret_name}\n- \"Delete a secret?\" -> DELETE /orgs/{org}/actions/secrets/{secret_name}\n- \"Get external-group details?\" -> GET /orgs/{org}/external-group/{group_id}\n- \"List all external-groups?\" -> GET /orgs/{org}/external-groups\n- \"List all installation?\" -> GET /orgs/{org}/installation\n- \"List all members?\" -> GET /orgs/{org}/members\n- \"Get member details?\" -> GET /orgs/{org}/members/{username}\n- \"Delete a member?\" -> DELETE /orgs/{org}/members/{username}\n- \"Get membership details?\" -> GET /orgs/{org}/memberships/{username}\n- \"Update a membership?\" -> PUT /orgs/{org}/memberships/{username}\n- \"Delete a membership?\" -> DELETE /orgs/{org}/memberships/{username}\n- \"List all migrations?\" -> GET /orgs/{org}/migrations\n- \"Create a migration?\" -> POST /orgs/{org}/migrations\n- \"Get migration details?\" -> GET /orgs/{org}/migrations/{migration_id}\n- \"List all archive?\" -> GET /orgs/{org}/migrations/{migration_id}/archive\n- \"List all outside_collaborators?\" -> GET /orgs/{org}/outside_collaborators\n- \"Update a outside_collaborator?\" -> PUT /orgs/{org}/outside_collaborators/{username}\n- \"Delete a outside_collaborator?\" -> DELETE /orgs/{org}/outside_collaborators/{username}\n- \"List all projects?\" -> GET /orgs/{org}/projects\n- \"Create a project?\" -> POST /orgs/{org}/projects\n- \"List all public_members?\" -> GET /orgs/{org}/public_members\n- \"Get public_member details?\" -> GET /orgs/{org}/public_members/{username}\n- \"Update a public_member?\" -> PUT /orgs/{org}/public_members/{username}\n- \"Delete a public_member?\" -> DELETE /orgs/{org}/public_members/{username}\n- \"Create a repo?\" -> POST /orgs/{org}/repos\n- \"List all security-managers?\" -> GET /orgs/{org}/security-managers\n- \"Update a team?\" -> PUT /orgs/{org}/security-managers/teams/{team_slug}\n- \"Delete a team?\" -> DELETE /orgs/{org}/security-managers/teams/{team_slug}\n- \"List all teams?\" -> GET /orgs/{org}/teams\n- \"Create a team?\" -> POST /orgs/{org}/teams\n- \"Get team details?\" -> GET /orgs/{org}/teams/{team_slug}\n- \"Partially update a team?\" -> PATCH /orgs/{org}/teams/{team_slug}\n- \"List all discussions?\" -> GET /orgs/{org}/teams/{team_slug}/discussions\n- \"Create a discussion?\" -> POST /orgs/{org}/teams/{team_slug}/discussions\n- \"Get discussion details?\" -> GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\n- \"Partially update a discussion?\" -> PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\n- \"Delete a discussion?\" -> DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\n- \"List all reactions?\" -> GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions\n- \"Create a reaction?\" -> POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions\n- \"Delete a reaction?\" -> DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}\n- \"Get project details?\" -> GET /orgs/{org}/teams/{team_slug}/projects/{project_id}\n- \"Update a project?\" -> PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}\n- \"Delete a project?\" -> DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}\n- \"Get repo details?\" -> GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\n- \"Update a repo?\" -> PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\n- \"Delete a repo?\" -> DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\n- \"Get card details?\" -> GET /projects/columns/cards/{card_id}\n- \"Partially update a card?\" -> PATCH /projects/columns/cards/{card_id}\n- \"Delete a card?\" -> DELETE /projects/columns/cards/{card_id}\n- \"Create a move?\" -> POST /projects/columns/cards/{card_id}/moves\n- \"Get column details?\" -> GET /projects/columns/{column_id}\n- \"Partially update a column?\" -> PATCH /projects/columns/{column_id}\n- \"Delete a column?\" -> DELETE /projects/columns/{column_id}\n- \"List all cards?\" -> GET /projects/columns/{column_id}/cards\n- \"Create a card?\" -> POST /projects/columns/{column_id}/cards\n- \"Partially update a project?\" -> PATCH /projects/{project_id}\n- \"List all collaborators?\" -> GET /projects/{project_id}/collaborators\n- \"Update a collaborator?\" -> PUT /projects/{project_id}/collaborators/{username}\n- \"Delete a collaborator?\" -> DELETE /projects/{project_id}/collaborators/{username}\n- \"List all permission?\" -> GET /projects/{project_id}/collaborators/{username}/permission\n- \"List all columns?\" -> GET /projects/{project_id}/columns\n- \"Create a column?\" -> POST /projects/{project_id}/columns\n- \"List all rate_limit?\" -> GET /rate_limit\n- \"Partially update a repo?\" -> PATCH /repos/{owner}/{repo}\n- \"List all artifacts?\" -> GET /repos/{owner}/{repo}/actions/artifacts\n- \"Get artifact details?\" -> GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}\n- \"Delete a artifact?\" -> DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}\n- \"List all caches?\" -> GET /repos/{owner}/{repo}/actions/caches\n- \"Delete a cache?\" -> DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}\n- \"Get job details?\" -> GET /repos/{owner}/{repo}/actions/jobs/{job_id}\n- \"List all logs?\" -> GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs\n- \"Create a rerun?\" -> POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun\n- \"List all access?\" -> GET /repos/{owner}/{repo}/actions/permissions/access\n- \"List all runs?\" -> GET /repos/{owner}/{repo}/actions/runs\n- \"Get run details?\" -> GET /repos/{owner}/{repo}/actions/runs/{run_id}\n- \"Delete a run?\" -> DELETE /repos/{owner}/{repo}/actions/runs/{run_id}\n- \"List all approvals?\" -> GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals\n- \"Get attempt details?\" -> GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}\n- \"List all jobs?\" -> GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs\n- \"Create a cancel?\" -> POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel\n- \"List all pending_deployments?\" -> GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments\n- \"Create a pending_deployment?\" -> POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments\n- \"Create a rerun-failed-job?\" -> POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs\n- \"List all workflows?\" -> GET /repos/{owner}/{repo}/actions/workflows\n- \"Get workflow details?\" -> GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}\n- \"Create a dispatche?\" -> POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches\n- \"List all assignees?\" -> GET /repos/{owner}/{repo}/assignees\n- \"Get assignee details?\" -> GET /repos/{owner}/{repo}/assignees/{assignee}\n- \"List all autolinks?\" -> GET /repos/{owner}/{repo}/autolinks\n- \"Create a autolink?\" -> POST /repos/{owner}/{repo}/autolinks\n- \"Get autolink details?\" -> GET /repos/{owner}/{repo}/autolinks/{autolink_id}\n- \"Delete a autolink?\" -> DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}\n- \"List all branches?\" -> GET /repos/{owner}/{repo}/branches\n- \"Get branche details?\" -> GET /repos/{owner}/{repo}/branches/{branch}\n- \"List all protection?\" -> GET /repos/{owner}/{repo}/branches/{branch}/protection\n- \"List all enforce_admins?\" -> GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\n- \"Create a enforce_admin?\" -> POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\n- \"List all required_pull_request_reviews?\" -> GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\n- \"List all required_signatures?\" -> GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\n- \"Create a required_signature?\" -> POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\n- \"List all required_status_checks?\" -> GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\n- \"List all contexts?\" -> GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\n- \"Create a context?\" -> POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\n- \"List all restrictions?\" -> GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions\n- \"List all apps?\" -> GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\n- \"Create a app?\" -> POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\n- \"Create a rename?\" -> POST /repos/{owner}/{repo}/branches/{branch}/rename\n- \"Create a check-run?\" -> POST /repos/{owner}/{repo}/check-runs\n- \"Get check-run details?\" -> GET /repos/{owner}/{repo}/check-runs/{check_run_id}\n- \"Partially update a check-run?\" -> PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}\n- \"List all annotations?\" -> GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations\n- \"Create a rerequest?\" -> POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest\n- \"Create a check-suite?\" -> POST /repos/{owner}/{repo}/check-suites\n- \"Get check-suite details?\" -> GET /repos/{owner}/{repo}/check-suites/{check_suite_id}\n- \"List all check-runs?\" -> GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs\n- \"Get alert details?\" -> GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}\n- \"Partially update a alert?\" -> PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}\n- \"List all instances?\" -> GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances\n- \"List all analyses?\" -> GET /repos/{owner}/{repo}/code-scanning/analyses\n- \"Get analysis details?\" -> GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}\n- \"Delete a analysis?\" -> DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}\n- \"Create a sarif?\" -> POST /repos/{owner}/{repo}/code-scanning/sarifs\n- \"Get sarif details?\" -> GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}\n- \"List all errors?\" -> GET /repos/{owner}/{repo}/codeowners/errors\n- \"Get collaborator details?\" -> GET /repos/{owner}/{repo}/collaborators/{username}\n- \"List all branches-where-head?\" -> GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head\n- \"Get commit details?\" -> GET /repos/{owner}/{repo}/commits/{ref}\n- \"List all check-suites?\" -> GET /repos/{owner}/{repo}/commits/{ref}/check-suites\n- \"List all status?\" -> GET /repos/{owner}/{repo}/commits/{ref}/status\n- \"List all statuses?\" -> GET /repos/{owner}/{repo}/commits/{ref}/statuses\n- \"Get compare details?\" -> GET /repos/{owner}/{repo}/compare/{basehead}\n- \"Get content details?\" -> GET /repos/{owner}/{repo}/contents/{path}\n- \"Update a content?\" -> PUT /repos/{owner}/{repo}/contents/{path}\n- \"Delete a content?\" -> DELETE /repos/{owner}/{repo}/contents/{path}\n- \"List all contributors?\" -> GET /repos/{owner}/{repo}/contributors\n- \"Create a snapshot?\" -> POST /repos/{owner}/{repo}/dependency-graph/snapshots\n- \"List all deployments?\" -> GET /repos/{owner}/{repo}/deployments\n- \"Create a deployment?\" -> POST /repos/{owner}/{repo}/deployments\n- \"Get deployment details?\" -> GET /repos/{owner}/{repo}/deployments/{deployment_id}\n- \"Delete a deployment?\" -> DELETE /repos/{owner}/{repo}/deployments/{deployment_id}\n- \"Create a statuse?\" -> POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\n- \"Get statuse details?\" -> GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}\n- \"List all environments?\" -> GET /repos/{owner}/{repo}/environments\n- \"Get environment details?\" -> GET /repos/{owner}/{repo}/environments/{environment_name}\n- \"Update a environment?\" -> PUT /repos/{owner}/{repo}/environments/{environment_name}\n- \"Delete a environment?\" -> DELETE /repos/{owner}/{repo}/environments/{environment_name}\n- \"List all deployment-branch-policies?\" -> GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies\n- \"Create a deployment-branch-policy?\" -> POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies\n- \"Get deployment-branch-policy details?\" -> GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}\n- \"Update a deployment-branch-policy?\" -> PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}\n- \"Delete a deployment-branch-policy?\" -> DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}\n- \"Create a blob?\" -> POST /repos/{owner}/{repo}/git/blobs\n- \"Get blob details?\" -> GET /repos/{owner}/{repo}/git/blobs/{file_sha}\n- \"Create a commit?\" -> POST /repos/{owner}/{repo}/git/commits\n- \"Get matching-ref details?\" -> GET /repos/{owner}/{repo}/git/matching-refs/{ref}\n- \"Get ref details?\" -> GET /repos/{owner}/{repo}/git/ref/{ref}\n- \"Create a ref?\" -> POST /repos/{owner}/{repo}/git/refs\n- \"Partially update a ref?\" -> PATCH /repos/{owner}/{repo}/git/refs/{ref}\n- \"Delete a ref?\" -> DELETE /repos/{owner}/{repo}/git/refs/{ref}\n- \"Create a tag?\" -> POST /repos/{owner}/{repo}/git/tags\n- \"Get tag details?\" -> GET /repos/{owner}/{repo}/git/tags/{tag_sha}\n- \"Create a tree?\" -> POST /repos/{owner}/{repo}/git/trees\n- \"Get tree details?\" -> GET /repos/{owner}/{repo}/git/trees/{tree_sha}\n- \"Create a test?\" -> POST /repos/{owner}/{repo}/hooks/{hook_id}/tests\n- \"List all invitations?\" -> GET /repos/{owner}/{repo}/invitations\n- \"Partially update a invitation?\" -> PATCH /repos/{owner}/{repo}/invitations/{invitation_id}\n- \"Delete a invitation?\" -> DELETE /repos/{owner}/{repo}/invitations/{invitation_id}\n- \"Create a issue?\" -> POST /repos/{owner}/{repo}/issues\n- \"Get event details?\" -> GET /repos/{owner}/{repo}/issues/events/{event_id}\n- \"Get issue details?\" -> GET /repos/{owner}/{repo}/issues/{issue_number}\n- \"Partially update a issue?\" -> PATCH /repos/{owner}/{repo}/issues/{issue_number}\n- \"Create a assignee?\" -> POST /repos/{owner}/{repo}/issues/{issue_number}/assignees\n- \"List all timeline?\" -> GET /repos/{owner}/{repo}/issues/{issue_number}/timeline\n- \"Create a key?\" -> POST /repos/{owner}/{repo}/keys\n- \"Get key details?\" -> GET /repos/{owner}/{repo}/keys/{key_id}\n- \"Get label details?\" -> GET /repos/{owner}/{repo}/labels/{name}\n- \"Partially update a label?\" -> PATCH /repos/{owner}/{repo}/labels/{name}\n- \"List all languages?\" -> GET /repos/{owner}/{repo}/languages\n- \"Create a merge-upstream?\" -> POST /repos/{owner}/{repo}/merge-upstream\n- \"Create a merge?\" -> POST /repos/{owner}/{repo}/merges\n- \"Create a milestone?\" -> POST /repos/{owner}/{repo}/milestones\n- \"Get milestone details?\" -> GET /repos/{owner}/{repo}/milestones/{milestone_number}\n- \"Partially update a milestone?\" -> PATCH /repos/{owner}/{repo}/milestones/{milestone_number}\n- \"Delete a milestone?\" -> DELETE /repos/{owner}/{repo}/milestones/{milestone_number}\n- \"Create a page?\" -> POST /repos/{owner}/{repo}/pages\n- \"List all builds?\" -> GET /repos/{owner}/{repo}/pages/builds\n- \"Create a build?\" -> POST /repos/{owner}/{repo}/pages/builds\n- \"Get build details?\" -> GET /repos/{owner}/{repo}/pages/builds/{build_id}\n- \"Create a pull?\" -> POST /repos/{owner}/{repo}/pulls\n- \"Get pull details?\" -> GET /repos/{owner}/{repo}/pulls/{pull_number}\n- \"Partially update a pull?\" -> PATCH /repos/{owner}/{repo}/pulls/{pull_number}\n- \"Create a reply?\" -> POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies\n- \"List all files?\" -> GET /repos/{owner}/{repo}/pulls/{pull_number}/files\n- \"List all merge?\" -> GET /repos/{owner}/{repo}/pulls/{pull_number}/merge\n- \"List all requested_reviewers?\" -> GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\n- \"Create a requested_reviewer?\" -> POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\n- \"List all reviews?\" -> GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews\n- \"Create a review?\" -> POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews\n- \"Get review details?\" -> GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\n- \"Update a review?\" -> PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\n- \"Delete a review?\" -> DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\n- \"Create a event?\" -> POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events\n- \"List all readme?\" -> GET /repos/{owner}/{repo}/readme\n- \"Get readme details?\" -> GET /repos/{owner}/{repo}/readme/{dir}\n- \"List all releases?\" -> GET /repos/{owner}/{repo}/releases\n- \"Create a release?\" -> POST /repos/{owner}/{repo}/releases\n- \"Get asset details?\" -> GET /repos/{owner}/{repo}/releases/assets/{asset_id}\n- \"Partially update a asset?\" -> PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}\n- \"Delete a asset?\" -> DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}\n- \"Create a generate-note?\" -> POST /repos/{owner}/{repo}/releases/generate-notes\n- \"Get release details?\" -> GET /repos/{owner}/{repo}/releases/{release_id}\n- \"Partially update a release?\" -> PATCH /repos/{owner}/{repo}/releases/{release_id}\n- \"Delete a release?\" -> DELETE /repos/{owner}/{repo}/releases/{release_id}\n- \"List all assets?\" -> GET /repos/{owner}/{repo}/releases/{release_id}/assets\n- \"Create a asset?\" -> POST /repos/{owner}/{repo}/releases/{release_id}/assets\n- \"List all locations?\" -> GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations\n- \"List all stargazers?\" -> GET /repos/{owner}/{repo}/stargazers\n- \"List all code_frequency?\" -> GET /repos/{owner}/{repo}/stats/code_frequency\n- \"List all commit_activity?\" -> GET /repos/{owner}/{repo}/stats/commit_activity\n- \"List all participation?\" -> GET /repos/{owner}/{repo}/stats/participation\n- \"List all punch_card?\" -> GET /repos/{owner}/{repo}/stats/punch_card\n- \"List all subscribers?\" -> GET /repos/{owner}/{repo}/subscribers\n- \"List all tags?\" -> GET /repos/{owner}/{repo}/tags\n- \"Create a protection?\" -> POST /repos/{owner}/{repo}/tags/protection\n- \"Delete a protection?\" -> DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}\n- \"Get tarball details?\" -> GET /repos/{owner}/{repo}/tarball/{ref}\n- \"List all topics?\" -> GET /repos/{owner}/{repo}/topics\n- \"Create a transfer?\" -> POST /repos/{owner}/{repo}/transfer\n- \"Get zipball details?\" -> GET /repos/{owner}/{repo}/zipball/{ref}\n- \"Create a generate?\" -> POST /repos/{template_owner}/{template_repo}/generate\n- \"List all Groups?\" -> GET /scim/v2/Groups\n- \"Create a Group?\" -> POST /scim/v2/Groups\n- \"Get Group details?\" -> GET /scim/v2/Groups/{scim_group_id}\n- \"Update a Group?\" -> PUT /scim/v2/Groups/{scim_group_id}\n- \"Partially update a Group?\" -> PATCH /scim/v2/Groups/{scim_group_id}\n- \"Delete a Group?\" -> DELETE /scim/v2/Groups/{scim_group_id}\n- \"List all Users?\" -> GET /scim/v2/Users\n- \"Create a User?\" -> POST /scim/v2/Users\n- \"Get User details?\" -> GET /scim/v2/Users/{scim_user_id}\n- \"Update a User?\" -> PUT /scim/v2/Users/{scim_user_id}\n- \"Partially update a User?\" -> PATCH /scim/v2/Users/{scim_user_id}\n- \"Delete a User?\" -> DELETE /scim/v2/Users/{scim_user_id}\n- \"Search code?\" -> GET /search/code\n- \"Search commits?\" -> GET /search/commits\n- \"Search issues?\" -> GET /search/issues\n- \"Search labels?\" -> GET /search/labels\n- \"Search repositories?\" -> GET /search/repositories\n- \"Search topics?\" -> GET /search/topics\n- \"Search users?\" -> GET /search/users\n- \"List all configcheck?\" -> GET /setup/api/configcheck\n- \"Create a configure?\" -> POST /setup/api/configure\n- \"List all maintenance?\" -> GET /setup/api/maintenance\n- \"Create a maintenance?\" -> POST /setup/api/maintenance\n- \"List all settings?\" -> GET /setup/api/settings\n- \"List all authorized-keys?\" -> GET /setup/api/settings/authorized-keys\n- \"Create a authorized-key?\" -> POST /setup/api/settings/authorized-keys\n- \"Create a start?\" -> POST /setup/api/start\n- \"Create a upgrade?\" -> POST /setup/api/upgrade\n- \"Update a member?\" -> PUT /teams/{team_id}/members/{username}\n- \"List all user?\" -> GET /user\n- \"List all emails?\" -> GET /user/emails\n- \"Create a email?\" -> POST /user/emails\n- \"List all followers?\" -> GET /user/followers\n- \"List all following?\" -> GET /user/following\n- \"Get following details?\" -> GET /user/following/{username}\n- \"Update a following?\" -> PUT /user/following/{username}\n- \"Delete a following?\" -> DELETE /user/following/{username}\n- \"List all gpg_keys?\" -> GET /user/gpg_keys\n- \"Create a gpg_key?\" -> POST /user/gpg_keys\n- \"Get gpg_key details?\" -> GET /user/gpg_keys/{gpg_key_id}\n- \"Delete a gpg_key?\" -> DELETE /user/gpg_keys/{gpg_key_id}\n- \"List all public_emails?\" -> GET /user/public_emails\n- \"List all repository_invitations?\" -> GET /user/repository_invitations\n- \"Partially update a repository_invitation?\" -> PATCH /user/repository_invitations/{invitation_id}\n- \"Delete a repository_invitation?\" -> DELETE /user/repository_invitations/{invitation_id}\n- \"List all ssh_signing_keys?\" -> GET /user/ssh_signing_keys\n- \"Create a ssh_signing_key?\" -> POST /user/ssh_signing_keys\n- \"Get ssh_signing_key details?\" -> GET /user/ssh_signing_keys/{ssh_signing_key_id}\n- \"Delete a ssh_signing_key?\" -> DELETE /user/ssh_signing_keys/{ssh_signing_key_id}\n- \"Get starred details?\" -> GET /user/starred/{owner}/{repo}\n- \"Update a starred?\" -> PUT /user/starred/{owner}/{repo}\n- \"Delete a starred?\" -> DELETE /user/starred/{owner}/{repo}\n- \"List all subscriptions?\" -> GET /user/subscriptions\n- \"Get user details?\" -> GET /users/{username}\n- \"List all hovercard?\" -> GET /users/{username}/hovercard\n- \"List all received_events?\" -> GET /users/{username}/received_events\n- \"List all zen?\" -> GET /zen\n- \"How to authenticate?\" -> See Auth section above\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Paginated endpoints accept limit/offset or cursor parameters\n- Create/update endpoints return the modified resource on success\n- Error responses include status codes and descriptions in the spec\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api GitHub v3 REST API\n@base {protocol}://{hostname}/api/v3\n@version 1.1.4\n@auth ApiKey filter in query\n@endpoints 828\n@hint download_for_search\n@toc root(1), admin(33), app(13), app-manifests(1), applications(8), apps(1), authorizations(7), codes_of_conduct(2), emojis(1), enterprise(15), enterprises(41), events(1), feeds(1), gists(19), gitignore(2), installation(2), issues(1), licenses(2), markdown(2), meta(1), networks(1), notifications(7), octocat(1), organizations(2), orgs(148), projects(19), rate_limit(1), repos(352), repositories(6), scim(12), search(7), setup(11), teams(33), user(48), users(25), zen(1)\n\n@group root\n@endpoint GET /\n@desc GitHub API Root\n@returns(200) {current_user_url: str(uri-template), current_user_authorizations_html_url: str(uri-template), authorizations_url: str(uri-template), code_search_url: str(uri-template), commit_search_url: str(uri-template), emails_url: str(uri-template), emojis_url: str(uri-template), events_url: str(uri-template), feeds_url: str(uri-template), followers_url: str(uri-template), following_url: str(uri-template), gists_url: str(uri-template), hub_url: str(uri-template), issue_search_url: str(uri-template), issues_url: str(uri-template), keys_url: str(uri-template), label_search_url: str(uri-template), notifications_url: str(uri-template), organization_url: str(uri-template), organization_repositories_url: str(uri-template), organization_teams_url: str(uri-template), public_gists_url: str(uri-template), rate_limit_url: str(uri-template), repository_url: str(uri-template), repository_search_url: str(uri-template), current_user_repositories_url: str(uri-template), starred_url: str(uri-template), starred_gists_url: str(uri-template), topic_search_url: str(uri-template), user_url: str(uri-template), user_organizations_url: str(uri-template), user_repositories_url: str(uri-template), user_search_url: str(uri-template)} # Response\n\n@endgroup\n\n@group admin\n@endpoint GET /admin/hooks\n@desc List global webhooks\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint POST /admin/hooks\n@desc Create a global webhook\n@required {name: str # Must be passed as \"web\"., config: map{url!: str, content_type: str, secret: str, insecure_ssl: str} # Key/value pairs to provide settings for this webhook.}\n@optional {events: [str] # The [events](https://docs.github.com/enterprise-server@3.7/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`., active: bool=true # Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.}\n@returns(201) {type: str, id: int, name: str, active: bool, events: [str], config: map{url: str, content_type: str, insecure_ssl: str, secret: str}, updated_at: str, created_at: str, url: str, ping_url: str} # Response\n@example_request {\"name\":\"web\",\"events\":[\"organization\",\"user\"],\"config\":{\"url\":\"https://example.com/webhook\",\"content_type\":\"json\",\"secret\":\"secret\"}}\n\n@endpoint GET /admin/hooks/{hook_id}\n@desc Get a global webhook\n@required {hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.}\n@returns(200) {type: str, id: int, name: str, active: bool, events: [str], config: map{url: str, content_type: str, insecure_ssl: str, secret: str}, updated_at: str, created_at: str, url: str, ping_url: str} # Response\n\n@endpoint PATCH /admin/hooks/{hook_id}\n@desc Update a global webhook\n@required {hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.}\n@optional {config: map{url!: str, content_type: str, secret: str, insecure_ssl: str} # Key/value pairs to provide settings for this webhook., events: [str] # The [events](https://docs.github.com/enterprise-server@3.7/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`., active: bool=true # Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.}\n@returns(200) {type: str, id: int, name: str, active: bool, events: [str], config: map{url: str, content_type: str, insecure_ssl: str}, updated_at: str, created_at: str, url: str, ping_url: str} # Response\n@example_request {\"events\":[\"organization\"],\"config\":{\"url\":\"https://example.com/webhook\"}}\n\n@endpoint DELETE /admin/hooks/{hook_id}\n@desc Delete a global webhook\n@required {hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.}\n@returns(204) Response\n\n@endpoint POST /admin/hooks/{hook_id}/pings\n@desc Ping a global webhook\n@required {hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.}\n@returns(204) Response\n\n@endpoint GET /admin/keys\n@desc List public keys\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", direction: str(asc/desc)=desc # The direction to sort the results by., sort: str(created/updated/accessed)=created, since: str # Only show public keys accessed after the given time.}\n@returns(200) Response\n\n@endpoint DELETE /admin/keys/{key_ids}\n@desc Delete a public key\n@required {key_ids: str # The unique identifier of the key.}\n@returns(204) Response\n\n@endpoint PATCH /admin/ldap/teams/{team_id}/mapping\n@desc Update LDAP mapping for a team\n@required {team_id: int # The unique identifier of the team., ldap_dn: str # The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.}\n@returns(200) {ldap_dn: str, id: int, node_id: str, url: str, html_url: str, name: str, slug: str, description: str?, privacy: str, permission: str, members_url: str, repositories_url: str, parent: any?} # Response\n@example_request {\"ldap_dn\":\"cn=Enterprise Ops,ou=teams,dc=github,dc=com\"}\n\n@endpoint POST /admin/ldap/teams/{team_id}/sync\n@desc Sync LDAP mapping for a team\n@required {team_id: int # The unique identifier of the team.}\n@returns(201) {status: str} # Response\n\n@endpoint PATCH /admin/ldap/users/{username}/mapping\n@desc Update LDAP mapping for a user\n@required {username: str # The handle for the GitHub user account., ldap_dn: str # The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.}\n@returns(200) {ldap_dn: str, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, name: str?, company: str?, blog: str?, location: str?, email: str(email)?, hireable: bool?, bio: str?, twitter_username: str?, public_repos: int, public_gists: int, followers: int, following: int, created_at: str(date-time), updated_at: str(date-time), private_gists: int, total_private_repos: int, owned_private_repos: int, disk_usage: int, collaborators: int, two_factor_authentication: bool, plan: map{collaborators: int, name: str, space: int, private_repos: int}, suspended_at: str(date-time)?, business_plus: bool} # Response\n@example_request {\"ldap_dn\":\"uid=asdf,ou=users,dc=github,dc=com\"}\n\n@endpoint POST /admin/ldap/users/{username}/sync\n@desc Sync LDAP mapping for a user\n@required {username: str # The handle for the GitHub user account.}\n@returns(201) {status: str} # Response\n\n@endpoint POST /admin/organizations\n@desc Create an organization\n@required {login: str # The organization's username., admin: str # The login of the user who will manage this organization.}\n@optional {profile_name: str # The organization's display name.}\n@returns(201) {login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?} # Response\n@example_request {\"login\":\"github\",\"profile_name\":\"GitHub, Inc.\",\"admin\":\"monalisaoctocat\"}\n\n@endpoint PATCH /admin/organizations/{org}\n@desc Update an organization name\n@required {org: str # The organization name. The name is not case sensitive., login: str # The organization's new name.}\n@returns(202) {message: str, url: str} # Response\n@example_request {\"login\":\"the-new-octocats\"}\n\n@endpoint GET /admin/pre-receive-environments\n@desc List pre-receive environments\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", direction: str(asc/desc)=desc # The direction to sort the results by., sort: str(created/updated/name)=created}\n@returns(200) Response\n\n@endpoint POST /admin/pre-receive-environments\n@desc Create a pre-receive environment\n@required {name: str # The new pre-receive environment's name., image_url: str # URL from which to download a tarball of this environment.}\n@returns(201) {id: int, name: str, image_url: str, url: str, html_url: str, default_environment: bool, created_at: str, hooks_count: int, download: map{url: str, state: str, downloaded_at: str?, message: str?}} # Response\n@example_request {\"name\":\"DevTools Hook Env\",\"image_url\":\"https://my_file_server/path/to/devtools_env.tar.gz\"}\n\n@endpoint GET /admin/pre-receive-environments/{pre_receive_environment_id}\n@desc Get a pre-receive environment\n@required {pre_receive_environment_id: int # The unique identifier of the pre-receive environment.}\n@returns(200) {id: int, name: str, image_url: str, url: str, html_url: str, default_environment: bool, created_at: str, hooks_count: int, download: map{url: str, state: str, downloaded_at: str?, message: str?}} # Response\n\n@endpoint PATCH /admin/pre-receive-environments/{pre_receive_environment_id}\n@desc Update a pre-receive environment\n@required {pre_receive_environment_id: int # The unique identifier of the pre-receive environment.}\n@optional {name: str # This pre-receive environment's new name., image_url: str # URL from which to download a tarball of this environment.}\n@returns(200) {id: int, name: str, image_url: str, url: str, html_url: str, default_environment: bool, created_at: str, hooks_count: int, download: map{url: str, state: str, downloaded_at: str?, message: str?}} # Response\n@errors {422: Client Errors}\n@example_request {\"name\":\"DevTools Hook Env\",\"image_url\":\"https://my_file_server/path/to/devtools_env.tar.gz\"}\n\n@endpoint DELETE /admin/pre-receive-environments/{pre_receive_environment_id}\n@desc Delete a pre-receive environment\n@required {pre_receive_environment_id: int # The unique identifier of the pre-receive environment.}\n@returns(204) Response\n@errors {422: Client Errors}\n\n@endpoint POST /admin/pre-receive-environments/{pre_receive_environment_id}/downloads\n@desc Start a pre-receive environment download\n@required {pre_receive_environment_id: int # The unique identifier of the pre-receive environment.}\n@returns(202) {url: str, state: str, downloaded_at: str?, message: str?} # Response\n@errors {422: Client Errors}\n\n@endpoint GET /admin/pre-receive-environments/{pre_receive_environment_id}/downloads/latest\n@desc Get the download status for a pre-receive environment\n@required {pre_receive_environment_id: int # The unique identifier of the pre-receive environment.}\n@returns(200) {url: str, state: str, downloaded_at: str?, message: str?} # Response\n\n@endpoint GET /admin/pre-receive-hooks\n@desc List pre-receive hooks\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", direction: str(asc/desc)=desc # The direction to sort the results by., sort: str(created/updated/name)=created # The property to sort the results by.}\n@returns(200) Response\n\n@endpoint POST /admin/pre-receive-hooks\n@desc Create a pre-receive hook\n@required {name: str # The name of the hook., script: str # The script that the hook runs., script_repository: map{} # The GitHub repository where the script is kept., environment: map{} # The pre-receive environment where the script is executed.}\n@optional {enforcement: str # The state of enforcement for this hook. default: `disabled`, allow_downstream_configuration: bool # Whether enforcement can be overridden at the org or repo level. default: `false`}\n@returns(201) {id: int, name: str, enforcement: str, script: str, script_repository: map{id: int, full_name: str, url: str, html_url: str}, environment: map{id: int, name: str, image_url: str, url: str, html_url: str, default_environment: bool, created_at: str, hooks_count: int, download: map{url: str, state: str, downloaded_at: str?, message: str?}}, allow_downstream_configuration: bool} # Response\n@example_request {\"name\":\"Check Commits\",\"script\":\"scripts/commit_check.sh\",\"enforcement\":\"disabled\",\"allow_downstream_configuration\":false,\"script_repository\":{\"full_name\":\"DevIT/hooks\"},\"environment\":{\"id\":2}}\n\n@endpoint GET /admin/pre-receive-hooks/{pre_receive_hook_id}\n@desc Get a pre-receive hook\n@required {pre_receive_hook_id: int # The unique identifier of the pre-receive hook.}\n@returns(200) {id: int, name: str, enforcement: str, script: str, script_repository: map{id: int, full_name: str, url: str, html_url: str}, environment: map{id: int, name: str, image_url: str, url: str, html_url: str, default_environment: bool, created_at: str, hooks_count: int, download: map{url: str, state: str, downloaded_at: str?, message: str?}}, allow_downstream_configuration: bool} # Response\n\n@endpoint PATCH /admin/pre-receive-hooks/{pre_receive_hook_id}\n@desc Update a pre-receive hook\n@required {pre_receive_hook_id: int # The unique identifier of the pre-receive hook.}\n@optional {name: str # The name of the hook., script: str # The script that the hook runs., script_repository: map{} # The GitHub repository where the script is kept., environment: map{} # The pre-receive environment where the script is executed., enforcement: str # The state of enforcement for this hook., allow_downstream_configuration: bool # Whether enforcement can be overridden at the org or repo level.}\n@returns(200) {id: int, name: str, enforcement: str, script: str, script_repository: map{id: int, full_name: str, url: str, html_url: str}, environment: map{id: int, name: str, image_url: str, url: str, html_url: str, default_environment: bool, created_at: str, hooks_count: int, download: map{url: str, state: str, downloaded_at: str?, message: str?}}, allow_downstream_configuration: bool} # Response\n@example_request {\"name\":\"Check Commits\",\"environment\":{\"id\":1},\"allow_downstream_configuration\":true}\n\n@endpoint DELETE /admin/pre-receive-hooks/{pre_receive_hook_id}\n@desc Delete a pre-receive hook\n@required {pre_receive_hook_id: int # The unique identifier of the pre-receive hook.}\n@returns(204) Response\n\n@endpoint GET /admin/tokens\n@desc List personal access tokens\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint DELETE /admin/tokens/{token_id}\n@desc Delete a personal access token\n@required {token_id: int # The unique identifier of the token.}\n@returns(204) Response\n\n@endpoint POST /admin/users\n@desc Create a user\n@required {login: str # The user's username.}\n@optional {email: str # **Required for built-in authentication.** The user's email address. This parameter can be omitted when using CAS, LDAP, or SAML. For more information, see \"[About authentication for your enterprise](https://docs.github.com/enterprise-server@3.7/admin/identity-and-access-management/managing-iam-for-your-enterprise/about-authentication-for-your-enterprise).\", suspended: bool=false # Whether to set the user as suspended when the user is created.}\n@returns(201) {name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str} # Response\n@example_request {\"login\":\"monalisa\",\"email\":\"octocat@github.com\"}\n\n@endpoint PATCH /admin/users/{username}\n@desc Update the username for a user\n@required {username: str # The handle for the GitHub user account., login: str # The user's new username.}\n@returns(202) {message: str, url: str} # Response\n@example_request {\"login\":\"thenewmonalisa\"}\n\n@endpoint DELETE /admin/users/{username}\n@desc Delete a user\n@required {username: str # The handle for the GitHub user account.}\n@returns(204) Response\n\n@endpoint POST /admin/users/{username}/authorizations\n@desc Create an impersonation OAuth token\n@required {username: str # The handle for the GitHub user account., scopes: [str] # A list of [scopes](https://docs.github.com/enterprise-server@3.7/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).}\n@returns(200) {id: int, url: str(uri), scopes: [str]?, token: str, token_last_eight: str?, hashed_token: str?, app: map{client_id: str, name: str, url: str(uri)}, note: str?, note_url: str(uri)?, updated_at: str(date-time), created_at: str(date-time), fingerprint: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, installation: map?{permissions: map{actions: str, administration: str, checks: str, codespaces: str, contents: str, dependabot_secrets: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_copilot_seat_management: str, organization_events: str, organization_hooks: str, organization_personal_access_tokens: str, organization_personal_access_token_requests: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str, email_addresses: str, followers: str, git_ssh_keys: str, gpg_keys: str, interaction_limits: str, profile: str, starring: str}, repository_selection: str, single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], repositories_url: str(uri), account: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}, expires_at: str(date-time)?} # Response when getting an existing impersonation OAuth token\n@returns(201) {id: int, url: str(uri), scopes: [str]?, token: str, token_last_eight: str?, hashed_token: str?, app: map{client_id: str, name: str, url: str(uri)}, note: str?, note_url: str(uri)?, updated_at: str(date-time), created_at: str(date-time), fingerprint: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, installation: map?{permissions: map{actions: str, administration: str, checks: str, codespaces: str, contents: str, dependabot_secrets: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_copilot_seat_management: str, organization_events: str, organization_hooks: str, organization_personal_access_tokens: str, organization_personal_access_token_requests: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str, email_addresses: str, followers: str, git_ssh_keys: str, gpg_keys: str, interaction_limits: str, profile: str, starring: str}, repository_selection: str, single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], repositories_url: str(uri), account: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}, expires_at: str(date-time)?} # Response when creating a new impersonation OAuth token\n@example_request {\"scopes\":[\"public_repo\"]}\n\n@endpoint DELETE /admin/users/{username}/authorizations\n@desc Delete an impersonation OAuth token\n@required {username: str # The handle for the GitHub user account.}\n@returns(204) Response\n\n@endgroup\n\n@group app\n@endpoint GET /app\n@desc Get the authenticated app\n@returns(200) {id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str} # Response\n\n@endgroup\n\n@group app-manifests\n@endpoint POST /app-manifests/{code}/conversions\n@desc Create a GitHub App from a manifest\n@required {code: str}\n@returns(201) Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endgroup\n\n@group app\n@endpoint GET /app/hook/config\n@desc Get a webhook configuration for an app\n@returns(200) {url: str(uri), content_type: str, secret: str, insecure_ssl: any} # Response\n\n@endpoint PATCH /app/hook/config\n@desc Update a webhook configuration for an app\n@optional {url: str(uri) # The URL to which the payloads will be delivered., content_type: str # The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`., secret: str # If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.7/webhooks/event-payloads/#delivery-headers)., insecure_ssl: any}\n@returns(200) {url: str(uri), content_type: str, secret: str, insecure_ssl: any} # Response\n@example_request {\"content_type\":\"json\",\"insecure_ssl\":\"0\",\"secret\":\"********\",\"url\":\"https://example.com/webhook\"}\n\n@endpoint GET /app/hook/deliveries\n@desc List deliveries for an app webhook\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", cursor: str # Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors., redelivery: bool}\n@returns(200) Response\n@errors {400: Bad Request, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /app/hook/deliveries/{delivery_id}\n@desc Get a delivery for an app webhook\n@required {delivery_id: int}\n@returns(200) {id: int, guid: str, delivered_at: str(date-time), redelivery: bool, duration: num, status: str, status_code: int, event: str, action: str?, installation_id: int?, repository_id: int?, url: str, request: map{headers: map?, payload: map?}, response: map{headers: map?, payload: str?}} # Response\n@errors {400: Bad Request, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint POST /app/hook/deliveries/{delivery_id}/attempts\n@desc Redeliver a delivery for an app webhook\n@required {delivery_id: int}\n@returns(202) Accepted\n@errors {400: Bad Request, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /app/installation-requests\n@desc List installation requests for the authenticated app\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) List of integration installation requests\n@errors {304: Not modified, 401: Requires authentication}\n\n@endpoint GET /app/installations\n@desc List installations for the authenticated app\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", since: str(date-time) # Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., outdated: str}\n@returns(200) The permissions the installation has are included under the `permissions` key.\n\n@endpoint GET /app/installations/{installation_id}\n@desc Get an installation for the authenticated app\n@required {installation_id: int # The unique identifier of the installation.}\n@returns(200) {id: int, account: any?, repository_selection: str, access_tokens_url: str(uri), repositories_url: str(uri), html_url: str(uri), app_id: int, target_id: int, target_type: str, permissions: map{actions: str, administration: str, checks: str, codespaces: str, contents: str, dependabot_secrets: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_copilot_seat_management: str, organization_events: str, organization_hooks: str, organization_personal_access_tokens: str, organization_personal_access_token_requests: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str, email_addresses: str, followers: str, git_ssh_keys: str, gpg_keys: str, interaction_limits: str, profile: str, starring: str}, events: [str], created_at: str(date-time), updated_at: str(date-time), single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], app_slug: str, suspended_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, suspended_at: str(date-time)?, contact_email: str?} # Response\n@errors {404: Resource not found}\n\n@endpoint DELETE /app/installations/{installation_id}\n@desc Delete an installation for the authenticated app\n@required {installation_id: int # The unique identifier of the installation.}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint POST /app/installations/{installation_id}/access_tokens\n@desc Create an installation access token for an app\n@required {installation_id: int # The unique identifier of the installation.}\n@optional {repositories: [str] # List of repository names that the token should have access to, repository_ids: [int] # List of repository IDs that the token should have access to, permissions: map{actions: str, administration: str, checks: str, codespaces: str, contents: str, dependabot_secrets: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_copilot_seat_management: str, organization_events: str, organization_hooks: str, organization_personal_access_tokens: str, organization_personal_access_token_requests: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str, email_addresses: str, followers: str, git_ssh_keys: str, gpg_keys: str, interaction_limits: str, profile: str, starring: str} # The permissions granted to the user access token.}\n@returns(201) {token: str, expires_at: str, permissions: map{actions: str, administration: str, checks: str, codespaces: str, contents: str, dependabot_secrets: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_copilot_seat_management: str, organization_events: str, organization_hooks: str, organization_personal_access_tokens: str, organization_personal_access_token_requests: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str, email_addresses: str, followers: str, git_ssh_keys: str, gpg_keys: str, interaction_limits: str, profile: str, starring: str}, repository_selection: str, repositories: [map], single_file: str, has_multiple_single_files: bool, single_file_paths: [str]} # Response\n@errors {401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"repositories\":[\"Hello-World\"],\"permissions\":{\"issues\":\"write\",\"contents\":\"read\"}}\n\n@endpoint PUT /app/installations/{installation_id}/suspended\n@desc Suspend an app installation\n@required {installation_id: int # The unique identifier of the installation.}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint DELETE /app/installations/{installation_id}/suspended\n@desc Unsuspend an app installation\n@required {installation_id: int # The unique identifier of the installation.}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endgroup\n\n@group applications\n@endpoint GET /applications/grants\n@desc List your grants\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", client_id: str # The client ID of your GitHub app.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /applications/grants/{grant_id}\n@desc Get a single grant\n@required {grant_id: int # The unique identifier of the grant.}\n@returns(200) {id: int, url: str(uri), app: map{client_id: str, name: str, url: str(uri)}, created_at: str(date-time), updated_at: str(date-time), scopes: [str], user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint DELETE /applications/grants/{grant_id}\n@desc Delete a grant\n@required {grant_id: int # The unique identifier of the grant.}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint DELETE /applications/{client_id}/grant\n@desc Delete an app authorization\n@required {client_id: str # The client ID of the GitHub app., access_token: str # The OAuth access token used to authenticate to the GitHub API.}\n@returns(204) Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"access_token\":\"e72e16c7e42f292c6912e7710c838347ae178b4a\"}\n\n@endpoint POST /applications/{client_id}/token\n@desc Check a token\n@required {client_id: str # The client ID of the GitHub app., access_token: str # The access_token of the OAuth or GitHub application.}\n@returns(200) {id: int, url: str(uri), scopes: [str]?, token: str, token_last_eight: str?, hashed_token: str?, app: map{client_id: str, name: str, url: str(uri)}, note: str?, note_url: str(uri)?, updated_at: str(date-time), created_at: str(date-time), fingerprint: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, installation: map?{permissions: map{actions: str, administration: str, checks: str, codespaces: str, contents: str, dependabot_secrets: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_copilot_seat_management: str, organization_events: str, organization_hooks: str, organization_personal_access_tokens: str, organization_personal_access_token_requests: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str, email_addresses: str, followers: str, git_ssh_keys: str, gpg_keys: str, interaction_limits: str, profile: str, starring: str}, repository_selection: str, single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], repositories_url: str(uri), account: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}, expires_at: str(date-time)?} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"access_token\":\"e72e16c7e42f292c6912e7710c838347ae178b4a\"}\n\n@endpoint PATCH /applications/{client_id}/token\n@desc Reset a token\n@required {client_id: str # The client ID of the GitHub app., access_token: str # The access_token of the OAuth or GitHub application.}\n@returns(200) {id: int, url: str(uri), scopes: [str]?, token: str, token_last_eight: str?, hashed_token: str?, app: map{client_id: str, name: str, url: str(uri)}, note: str?, note_url: str(uri)?, updated_at: str(date-time), created_at: str(date-time), fingerprint: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, installation: map?{permissions: map{actions: str, administration: str, checks: str, codespaces: str, contents: str, dependabot_secrets: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_copilot_seat_management: str, organization_events: str, organization_hooks: str, organization_personal_access_tokens: str, organization_personal_access_token_requests: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str, email_addresses: str, followers: str, git_ssh_keys: str, gpg_keys: str, interaction_limits: str, profile: str, starring: str}, repository_selection: str, single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], repositories_url: str(uri), account: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}, expires_at: str(date-time)?} # Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"access_token\":\"e72e16c7e42f292c6912e7710c838347ae178b4a\"}\n\n@endpoint DELETE /applications/{client_id}/token\n@desc Delete an app token\n@required {client_id: str # The client ID of the GitHub app., access_token: str # The OAuth access token used to authenticate to the GitHub API.}\n@returns(204) Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"access_token\":\"e72e16c7e42f292c6912e7710c838347ae178b4a\"}\n\n@endpoint POST /applications/{client_id}/token/scoped\n@desc Create a scoped access token\n@required {client_id: str # The client ID of the GitHub app., access_token: str # The access token used to authenticate to the GitHub API.}\n@optional {target: str # The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified., target_id: int # The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified., repositories: [str] # The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified., repository_ids: [int] # The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified., permissions: map{actions: str, administration: str, checks: str, codespaces: str, contents: str, dependabot_secrets: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_copilot_seat_management: str, organization_events: str, organization_hooks: str, organization_personal_access_tokens: str, organization_personal_access_token_requests: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str, email_addresses: str, followers: str, git_ssh_keys: str, gpg_keys: str, interaction_limits: str, profile: str, starring: str} # The permissions granted to the user access token.}\n@returns(200) {id: int, url: str(uri), scopes: [str]?, token: str, token_last_eight: str?, hashed_token: str?, app: map{client_id: str, name: str, url: str(uri)}, note: str?, note_url: str(uri)?, updated_at: str(date-time), created_at: str(date-time), fingerprint: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, installation: map?{permissions: map{actions: str, administration: str, checks: str, codespaces: str, contents: str, dependabot_secrets: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_copilot_seat_management: str, organization_events: str, organization_hooks: str, organization_personal_access_tokens: str, organization_personal_access_token_requests: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str, email_addresses: str, followers: str, git_ssh_keys: str, gpg_keys: str, interaction_limits: str, profile: str, starring: str}, repository_selection: str, single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], repositories_url: str(uri), account: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}, expires_at: str(date-time)?} # Response\n@errors {401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"access_token\":\"e72e16c7e42f292c6912e7710c838347ae178b4a\",\"target\":\"octocat\",\"permissions\":{\"metadata\":\"read\",\"issues\":\"write\",\"contents\":\"read\"}}\n\n@endgroup\n\n@group apps\n@endpoint GET /apps/{app_slug}\n@desc Get an app\n@required {app_slug: str}\n@returns(200) {id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str} # Response\n@errors {403: Forbidden, 404: Resource not found}\n\n@endgroup\n\n@group authorizations\n@endpoint GET /authorizations\n@desc List your authorizations\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", client_id: str # The client ID of your GitHub app.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint POST /authorizations\n@desc Create a new authorization\n@optional {scopes: [str] # A list of scopes that this authorization is in., note: str # A note to remind you what the OAuth token is for., note_url: str # A URL to remind you what app the OAuth token is for., client_id: str # The OAuth app client key for which to create the token., client_secret: str # The OAuth app client secret for which to create the token., fingerprint: str # A unique string to distinguish an authorization from others created for the same client ID and user.}\n@returns(201) {id: int, url: str(uri), scopes: [str]?, token: str, token_last_eight: str?, hashed_token: str?, app: map{client_id: str, name: str, url: str(uri)}, note: str?, note_url: str(uri)?, updated_at: str(date-time), created_at: str(date-time), fingerprint: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, installation: map?{permissions: map{actions: str, administration: str, checks: str, codespaces: str, contents: str, dependabot_secrets: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_copilot_seat_management: str, organization_events: str, organization_hooks: str, organization_personal_access_tokens: str, organization_personal_access_token_requests: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str, email_addresses: str, followers: str, git_ssh_keys: str, gpg_keys: str, interaction_limits: str, profile: str, starring: str}, repository_selection: str, single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], repositories_url: str(uri), account: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}, expires_at: str(date-time)?} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 410: Gone, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"scopes\":[\"public_repo\"],\"note\":\"optional note\",\"note_url\":\"http://optional/note/url\",\"client_id\":\"abcde12345fghij67890\",\"client_secret\":\"3ef4ad510c59ad37bac6bb4f80047fb3aee3cc7f\"}\n\n@endpoint PUT /authorizations/clients/{client_id}\n@desc Get-or-create an authorization for a specific app\n@required {client_id: str # The client ID of the OAuth app., client_secret: str # The OAuth app client secret for which to create the token.}\n@optional {scopes: [str] # A list of scopes that this authorization is in., note: str # A note to remind you what the OAuth token is for., note_url: str # A URL to remind you what app the OAuth token is for., fingerprint: str # A unique string to distinguish an authorization from others created for the same client ID and user.}\n@returns(200) {id: int, url: str(uri), scopes: [str]?, token: str, token_last_eight: str?, hashed_token: str?, app: map{client_id: str, name: str, url: str(uri)}, note: str?, note_url: str(uri)?, updated_at: str(date-time), created_at: str(date-time), fingerprint: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, installation: map?{permissions: map{actions: str, administration: str, checks: str, codespaces: str, contents: str, dependabot_secrets: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_copilot_seat_management: str, organization_events: str, organization_hooks: str, organization_personal_access_tokens: str, organization_personal_access_token_requests: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str, email_addresses: str, followers: str, git_ssh_keys: str, gpg_keys: str, interaction_limits: str, profile: str, starring: str}, repository_selection: str, single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], repositories_url: str(uri), account: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}, expires_at: str(date-time)?} # if returning an existing token\n@returns(201) {id: int, url: str(uri), scopes: [str]?, token: str, token_last_eight: str?, hashed_token: str?, app: map{client_id: str, name: str, url: str(uri)}, note: str?, note_url: str(uri)?, updated_at: str(date-time), created_at: str(date-time), fingerprint: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, installation: map?{permissions: map{actions: str, administration: str, checks: str, codespaces: str, contents: str, dependabot_secrets: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_copilot_seat_management: str, organization_events: str, organization_hooks: str, organization_personal_access_tokens: str, organization_personal_access_token_requests: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str, email_addresses: str, followers: str, git_ssh_keys: str, gpg_keys: str, interaction_limits: str, profile: str, starring: str}, repository_selection: str, single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], repositories_url: str(uri), account: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}, expires_at: str(date-time)?} # **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/enterprise-server@3.7/rest/oauth-authorizations/oauth-authorizations), which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our [web application flow](https://docs.github.com/enterprise-server@3.7/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/enterprise-server@3.7/rest/oauth-authorizations/oauth-authorizations) will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/).\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"client_secret\":\"3ef4ad510c59ad37bac6bb4f80047fb3aee3cc7f\",\"scopes\":[\"public_repo\"],\"note\":\"optional note\",\"note_url\":\"http://optional/note/url\"}\n\n@endpoint PUT /authorizations/clients/{client_id}/{fingerprint}\n@desc Get-or-create an authorization for a specific app and fingerprint\n@required {client_id: str # The client ID of the OAuth app., fingerprint: str, client_secret: str # The OAuth app client secret for which to create the token.}\n@optional {scopes: [str] # A list of scopes that this authorization is in., note: str # A note to remind you what the OAuth token is for., note_url: str # A URL to remind you what app the OAuth token is for.}\n@returns(200) {id: int, url: str(uri), scopes: [str]?, token: str, token_last_eight: str?, hashed_token: str?, app: map{client_id: str, name: str, url: str(uri)}, note: str?, note_url: str(uri)?, updated_at: str(date-time), created_at: str(date-time), fingerprint: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, installation: map?{permissions: map{actions: str, administration: str, checks: str, codespaces: str, contents: str, dependabot_secrets: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_copilot_seat_management: str, organization_events: str, organization_hooks: str, organization_personal_access_tokens: str, organization_personal_access_token_requests: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str, email_addresses: str, followers: str, git_ssh_keys: str, gpg_keys: str, interaction_limits: str, profile: str, starring: str}, repository_selection: str, single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], repositories_url: str(uri), account: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}, expires_at: str(date-time)?} # if returning an existing token\n@returns(201) {id: int, url: str(uri), scopes: [str]?, token: str, token_last_eight: str?, hashed_token: str?, app: map{client_id: str, name: str, url: str(uri)}, note: str?, note_url: str(uri)?, updated_at: str(date-time), created_at: str(date-time), fingerprint: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, installation: map?{permissions: map{actions: str, administration: str, checks: str, codespaces: str, contents: str, dependabot_secrets: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_copilot_seat_management: str, organization_events: str, organization_hooks: str, organization_personal_access_tokens: str, organization_personal_access_token_requests: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str, email_addresses: str, followers: str, git_ssh_keys: str, gpg_keys: str, interaction_limits: str, profile: str, starring: str}, repository_selection: str, single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], repositories_url: str(uri), account: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}, expires_at: str(date-time)?} # Response if returning a new token\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"client_secret\":\"3ef4ad510c59ad37bac6bb4f80047fb3aee3cc7f\",\"scopes\":[\"public_repo\"],\"note\":\"optional note\",\"note_url\":\"http://optional/note/url\"}\n\n@endpoint GET /authorizations/{authorization_id}\n@desc Get a single authorization\n@required {authorization_id: int # The unique identifier of the authorization.}\n@returns(200) {id: int, url: str(uri), scopes: [str]?, token: str, token_last_eight: str?, hashed_token: str?, app: map{client_id: str, name: str, url: str(uri)}, note: str?, note_url: str(uri)?, updated_at: str(date-time), created_at: str(date-time), fingerprint: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, installation: map?{permissions: map{actions: str, administration: str, checks: str, codespaces: str, contents: str, dependabot_secrets: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_copilot_seat_management: str, organization_events: str, organization_hooks: str, organization_personal_access_tokens: str, organization_personal_access_token_requests: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str, email_addresses: str, followers: str, git_ssh_keys: str, gpg_keys: str, interaction_limits: str, profile: str, starring: str}, repository_selection: str, single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], repositories_url: str(uri), account: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}, expires_at: str(date-time)?} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint PATCH /authorizations/{authorization_id}\n@desc Update an existing authorization\n@required {authorization_id: int # The unique identifier of the authorization.}\n@optional {scopes: [str] # A list of scopes that this authorization is in., add_scopes: [str] # A list of scopes to add to this authorization., remove_scopes: [str] # A list of scopes to remove from this authorization., note: str # A note to remind you what the OAuth token is for., note_url: str # A URL to remind you what app the OAuth token is for., fingerprint: str # A unique string to distinguish an authorization from others created for the same client ID and user.}\n@returns(200) {id: int, url: str(uri), scopes: [str]?, token: str, token_last_eight: str?, hashed_token: str?, app: map{client_id: str, name: str, url: str(uri)}, note: str?, note_url: str(uri)?, updated_at: str(date-time), created_at: str(date-time), fingerprint: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, installation: map?{permissions: map{actions: str, administration: str, checks: str, codespaces: str, contents: str, dependabot_secrets: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_copilot_seat_management: str, organization_events: str, organization_hooks: str, organization_personal_access_tokens: str, organization_personal_access_token_requests: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str, email_addresses: str, followers: str, git_ssh_keys: str, gpg_keys: str, interaction_limits: str, profile: str, starring: str}, repository_selection: str, single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], repositories_url: str(uri), account: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}, expires_at: str(date-time)?} # Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"add_scopes\":[\"public_repo\"],\"remove_scopes\":[\"user\"],\"note\":\"optional note\"}\n\n@endpoint DELETE /authorizations/{authorization_id}\n@desc Delete an authorization\n@required {authorization_id: int # The unique identifier of the authorization.}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endgroup\n\n@group codes_of_conduct\n@endpoint GET /codes_of_conduct\n@desc Get all codes of conduct\n@returns(200) Response\n@errors {304: Not modified}\n\n@endpoint GET /codes_of_conduct/{key}\n@desc Get a code of conduct\n@required {key: str}\n@returns(200) {key: str, name: str, url: str(uri), body: str, html_url: str(uri)?} # Response\n@errors {304: Not modified, 404: Resource not found}\n\n@endgroup\n\n@group emojis\n@endpoint GET /emojis\n@desc Get emojis\n@returns(200) Response\n@errors {304: Not modified}\n\n@endgroup\n\n@group enterprise\n@endpoint GET /enterprise/announcement\n@desc Get the global announcement banner\n@returns(200) {announcement: str?, expires_at: str(date-time)?} # Response\n\n@endpoint PATCH /enterprise/announcement\n@desc Set the global announcement banner\n@required {announcement: str # The announcement text in GitHub Flavored Markdown. For more information about GitHub Flavored Markdown, see \"[Basic writing and formatting syntax](https://docs.github.com/enterprise-server@3.7/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax).\"}\n@optional {expires_at: str(date-time) # The time at which the announcement expires. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. To set an announcement that never expires, omit this parameter, set it to `null`, or set it to an empty string.}\n@returns(200) {announcement: str?, expires_at: str(date-time)?} # Response\n@example_request {\"announcement\":\"Very **important** announcement about _something_.\",\"expires_at\":\"2021-01-01T00:00:00.000+00:00\"}\n\n@endpoint DELETE /enterprise/announcement\n@desc Remove the global announcement banner\n@returns(204) Response\n\n@endpoint GET /enterprise/settings/license\n@desc Get license information\n@returns(200) {seats: any, seats_used: int, seats_available: any, kind: str, days_until_expiration: int, expire_at: str} # Response\n\n@endpoint GET /enterprise/stats/all\n@desc Get all statistics\n@returns(200) {repos: map{total_repos: int, root_repos: int, fork_repos: int, org_repos: int, total_pushes: int, total_wikis: int}, hooks: map{total_hooks: int, active_hooks: int, inactive_hooks: int}, pages: map{total_pages: int}, orgs: map{total_orgs: int, disabled_orgs: int, total_teams: int, total_team_members: int}, users: map{total_users: int, admin_users: int, suspended_users: int}, pulls: map{total_pulls: int, merged_pulls: int, mergeable_pulls: int, unmergeable_pulls: int}, issues: map{total_issues: int, open_issues: int, closed_issues: int}, milestones: map{total_milestones: int, open_milestones: int, closed_milestones: int}, gists: map{total_gists: int, private_gists: int, public_gists: int}, comments: map{total_commit_comments: int, total_gist_comments: int, total_issue_comments: int, total_pull_request_comments: int}} # Response\n\n@endpoint GET /enterprise/stats/comments\n@desc Get comment statistics\n@returns(200) {total_commit_comments: int, total_gist_comments: int, total_issue_comments: int, total_pull_request_comments: int} # Response\n\n@endpoint GET /enterprise/stats/gists\n@desc Get gist statistics\n@returns(200) {total_gists: int, private_gists: int, public_gists: int} # Response\n\n@endpoint GET /enterprise/stats/hooks\n@desc Get hooks statistics\n@returns(200) {total_hooks: int, active_hooks: int, inactive_hooks: int} # Response\n\n@endpoint GET /enterprise/stats/issues\n@desc Get issue statistics\n@returns(200) {total_issues: int, open_issues: int, closed_issues: int} # Response\n\n@endpoint GET /enterprise/stats/milestones\n@desc Get milestone statistics\n@returns(200) {total_milestones: int, open_milestones: int, closed_milestones: int} # Response\n\n@endpoint GET /enterprise/stats/orgs\n@desc Get organization statistics\n@returns(200) {total_orgs: int, disabled_orgs: int, total_teams: int, total_team_members: int} # Response\n\n@endpoint GET /enterprise/stats/pages\n@desc Get pages statistics\n@returns(200) {total_pages: int} # Response\n\n@endpoint GET /enterprise/stats/pulls\n@desc Get pull request statistics\n@returns(200) {total_pulls: int, merged_pulls: int, mergeable_pulls: int, unmergeable_pulls: int} # Response\n\n@endpoint GET /enterprise/stats/repos\n@desc Get repository statistics\n@returns(200) {total_repos: int, root_repos: int, fork_repos: int, org_repos: int, total_pushes: int, total_wikis: int} # Response\n\n@endpoint GET /enterprise/stats/users\n@desc Get users statistics\n@returns(200) {total_users: int, admin_users: int, suspended_users: int} # Response\n\n@endgroup\n\n@group enterprises\n@endpoint GET /enterprises/{enterprise}/actions/cache/usage\n@desc Get GitHub Actions cache usage for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id.}\n@returns(200) {total_active_caches_count: int, total_active_caches_size_in_bytes: int} # Response\n\n@endpoint GET /enterprises/{enterprise}/actions/cache/usage-policy\n@desc Get GitHub Actions cache usage policy for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id.}\n@returns(200) {repo_cache_size_limit_in_gb: int, max_repo_cache_size_limit_in_gb: int} # Response\n\n@endpoint PATCH /enterprises/{enterprise}/actions/cache/usage-policy\n@desc Set GitHub Actions cache usage policy for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id.}\n@optional {repo_cache_size_limit_in_gb: int # For repositories in an enterprise, the default size limit for the sum of all caches in a repository, in gigabytes., max_repo_cache_size_limit_in_gb: int # For repositories in an enterprise, the maximum value that can be set as the limit for the sum of all caches in a repository, in gigabytes.}\n@returns(204) Response\n@example_request {\"repo_cache_size_limit_in_gb\":10,\"max_repo_cache_size_limit_in_gb\":15}\n\n@endpoint GET /enterprises/{enterprise}/actions/permissions\n@desc Get GitHub Actions permissions for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id.}\n@returns(200) {enabled_organizations: str, selected_organizations_url: str, allowed_actions: str, selected_actions_url: str} # Response\n\n@endpoint PUT /enterprises/{enterprise}/actions/permissions\n@desc Set GitHub Actions permissions for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., enabled_organizations: str(all/none/selected) # The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions.}\n@optional {allowed_actions: str(all/local_only/selected) # The permissions policy that controls the actions that are allowed to run.}\n@returns(204) Response\n@example_request {\"enabled_organizations\":\"all\",\"allowed_actions\":\"selected\"}\n\n@endpoint GET /enterprises/{enterprise}/actions/permissions/organizations\n@desc List selected organizations enabled for GitHub Actions in an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: num, organizations: [map]} # Response\n\n@endpoint PUT /enterprises/{enterprise}/actions/permissions/organizations\n@desc Set selected organizations enabled for GitHub Actions in an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., selected_organization_ids: [int] # List of organization IDs to enable for GitHub Actions.}\n@returns(204) Response\n@example_request {\"selected_organization_ids\":[32,91]}\n\n@endpoint PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}\n@desc Enable a selected organization for GitHub Actions in an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., org_id: int # The unique identifier of the organization.}\n@returns(204) Response\n\n@endpoint DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}\n@desc Disable a selected organization for GitHub Actions in an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., org_id: int # The unique identifier of the organization.}\n@returns(204) Response\n\n@endpoint GET /enterprises/{enterprise}/actions/permissions/selected-actions\n@desc Get allowed actions for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id.}\n@returns(200) {github_owned_allowed: bool, patterns_allowed: [str]} # Response\n\n@endpoint PUT /enterprises/{enterprise}/actions/permissions/selected-actions\n@desc Set allowed actions for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., github_owned_allowed: bool # Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization., patterns_allowed: [str] # Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.}\n@returns(204) Response\n@example_request {\"github_owned_allowed\":true,\"verified_allowed\":false,\"patterns_allowed\":[\"monalisa/octocat@*\",\"docker/*\"]}\n\n@endpoint GET /enterprises/{enterprise}/actions/permissions/workflow\n@desc Get default workflow permissions for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id.}\n@returns(200) {default_workflow_permissions: str, can_approve_pull_request_reviews: bool} # Success response\n\n@endpoint PUT /enterprises/{enterprise}/actions/permissions/workflow\n@desc Set default workflow permissions for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id.}\n@optional {default_workflow_permissions: str(read/write) # The default workflow permissions granted to the GITHUB_TOKEN when running workflows., can_approve_pull_request_reviews: bool # Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.}\n@returns(204) Success response\n@example_request {\"default_workflow_permissions\":\"read\",\"can_approve_pull_request_reviews\":true}\n\n@endpoint GET /enterprises/{enterprise}/actions/runner-groups\n@desc List self-hosted runner groups for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", visible_to_organization: str # Only return runner groups that are allowed to be used by this organization.}\n@returns(200) {total_count: num, runner_groups: [map]} # Response\n\n@endpoint POST /enterprises/{enterprise}/actions/runner-groups\n@desc Create a self-hosted runner group for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., name: str # Name of the runner group.}\n@optional {visibility: str(selected/all) # Visibility of a runner group. You can select all organizations or select individual organization., selected_organization_ids: [int] # List of organization IDs that can access the runner group., runners: [int] # List of runner IDs to add to the runner group., allows_public_repositories: bool=false # Whether the runner group can be used by `public` repositories., restricted_to_workflows: bool=false # If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array., selected_workflows: [str] # List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.}\n@returns(201) {id: num, name: str, visibility: str, default: bool, selected_organizations_url: str, runners_url: str, allows_public_repositories: bool, workflow_restrictions_read_only: bool, restricted_to_workflows: bool, selected_workflows: [str]} # Response\n@example_request {\"name\":\"Expensive hardware runners\",\"visibility\":\"selected\",\"selected_organization_ids\":[32,91],\"runners\":[9,2]}\n\n@endpoint GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}\n@desc Get a self-hosted runner group for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., runner_group_id: int # Unique identifier of the self-hosted runner group.}\n@returns(200) {id: num, name: str, visibility: str, default: bool, selected_organizations_url: str, runners_url: str, allows_public_repositories: bool, workflow_restrictions_read_only: bool, restricted_to_workflows: bool, selected_workflows: [str]} # Response\n\n@endpoint PATCH /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}\n@desc Update a self-hosted runner group for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., runner_group_id: int # Unique identifier of the self-hosted runner group.}\n@optional {name: str # Name of the runner group., visibility: str(selected/all)=all # Visibility of a runner group. You can select all organizations or select individual organizations., allows_public_repositories: bool=false # Whether the runner group can be used by `public` repositories., restricted_to_workflows: bool=false # If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array., selected_workflows: [str] # List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.}\n@returns(200) {id: num, name: str, visibility: str, default: bool, selected_organizations_url: str, runners_url: str, allows_public_repositories: bool, workflow_restrictions_read_only: bool, restricted_to_workflows: bool, selected_workflows: [str]} # Response\n@example_request {\"name\":\"Expensive hardware runners\",\"visibility\":\"selected\"}\n\n@endpoint DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}\n@desc Delete a self-hosted runner group from an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., runner_group_id: int # Unique identifier of the self-hosted runner group.}\n@returns(204) Response\n\n@endpoint GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations\n@desc List organization access to a self-hosted runner group in an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., runner_group_id: int # Unique identifier of the self-hosted runner group.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: num, organizations: [map]} # Response\n\n@endpoint PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations\n@desc Set organization access for a self-hosted runner group in an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., runner_group_id: int # Unique identifier of the self-hosted runner group., selected_organization_ids: [int] # List of organization IDs that can access the runner group.}\n@returns(204) Response\n@example_request {\"selected_organization_ids\":[32,91]}\n\n@endpoint PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}\n@desc Add organization access to a self-hosted runner group in an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., runner_group_id: int # Unique identifier of the self-hosted runner group., org_id: int # The unique identifier of the organization.}\n@returns(204) Response\n\n@endpoint DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}\n@desc Remove organization access to a self-hosted runner group in an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., runner_group_id: int # Unique identifier of the self-hosted runner group., org_id: int # The unique identifier of the organization.}\n@returns(204) Response\n\n@endpoint GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners\n@desc List self-hosted runners in a group for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., runner_group_id: int # Unique identifier of the self-hosted runner group.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: num, runners: [map]} # Response\n\n@endpoint PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners\n@desc Set self-hosted runners in a group for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., runner_group_id: int # Unique identifier of the self-hosted runner group., runners: [int] # List of runner IDs to add to the runner group.}\n@returns(204) Response\n@example_request {\"runners\":[9,2]}\n\n@endpoint PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}\n@desc Add a self-hosted runner to a group for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., runner_group_id: int # Unique identifier of the self-hosted runner group., runner_id: int # Unique identifier of the self-hosted runner.}\n@returns(204) Response\n\n@endpoint DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}\n@desc Remove a self-hosted runner from a group for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., runner_group_id: int # Unique identifier of the self-hosted runner group., runner_id: int # Unique identifier of the self-hosted runner.}\n@returns(204) Response\n\n@endpoint GET /enterprises/{enterprise}/actions/runners\n@desc List self-hosted runners for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: num, runners: [map]} # Response\n\n@endpoint GET /enterprises/{enterprise}/actions/runners/downloads\n@desc List runner applications for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id.}\n@returns(200) Response\n\n@endpoint POST /enterprises/{enterprise}/actions/runners/registration-token\n@desc Create a registration token for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id.}\n@returns(201) {token: str, expires_at: str(date-time), permissions: map, repositories: [map], single_file: str?, repository_selection: str} # Response\n\n@endpoint POST /enterprises/{enterprise}/actions/runners/remove-token\n@desc Create a remove token for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id.}\n@returns(201) {token: str, expires_at: str(date-time), permissions: map, repositories: [map], single_file: str?, repository_selection: str} # Response\n\n@endpoint GET /enterprises/{enterprise}/actions/runners/{runner_id}\n@desc Get a self-hosted runner for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., runner_id: int # Unique identifier of the self-hosted runner.}\n@returns(200) {id: int, runner_group_id: int, name: str, os: str, status: str, busy: bool, labels: [map]} # Response\n\n@endpoint DELETE /enterprises/{enterprise}/actions/runners/{runner_id}\n@desc Delete a self-hosted runner from an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., runner_id: int # Unique identifier of the self-hosted runner.}\n@returns(204) Response\n\n@endpoint GET /enterprises/{enterprise}/actions/runners/{runner_id}/labels\n@desc List labels for a self-hosted runner for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., runner_id: int # Unique identifier of the self-hosted runner.}\n@returns(200) {total_count: int, labels: [map]} # Response\n@errors {404: Resource not found}\n\n@endpoint POST /enterprises/{enterprise}/actions/runners/{runner_id}/labels\n@desc Add custom labels to a self-hosted runner for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., runner_id: int # Unique identifier of the self-hosted runner., labels: [str] # The names of the custom labels to add to the runner.}\n@returns(200) {total_count: int, labels: [map]} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"labels\":[\"gpu\",\"accelerated\"]}\n\n@endpoint PUT /enterprises/{enterprise}/actions/runners/{runner_id}/labels\n@desc Set custom labels for a self-hosted runner for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., runner_id: int # Unique identifier of the self-hosted runner., labels: [str] # The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.}\n@returns(200) {total_count: int, labels: [map]} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"labels\":[\"gpu\",\"accelerated\"]}\n\n@endpoint DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels\n@desc Remove all custom labels from a self-hosted runner for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., runner_id: int # Unique identifier of the self-hosted runner.}\n@returns(200) {total_count: int, labels: [map]} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels/{name}\n@desc Remove a custom label from a self-hosted runner for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id., runner_id: int # Unique identifier of the self-hosted runner., name: str # The name of a self-hosted runner's custom label.}\n@returns(200) {total_count: int, labels: [map]} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /enterprises/{enterprise}/audit-log\n@desc Get the audit log for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id.}\n@optional {phrase: str # A search phrase. For more information, see [Searching the audit log](https://docs.github.com/enterprise-server@3.7/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/searching-the-audit-log-for-your-enterprise#searching-the-audit-log)., include: str(web/git/all) # The event types to include:  - `web` - returns web (non-Git) events. - `git` - returns Git events. - `all` - returns both web and Git events.  The default is `web`., after: str # A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.7/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events after this cursor., before: str # A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.7/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor., order: str(desc/asc) # The order of audit log events. To list newest events first, specify `desc`. To list oldest events first, specify `asc`.  The default is `desc`., page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /enterprises/{enterprise}/code-scanning/alerts\n@desc List code scanning alerts for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id.}\n@optional {tool_name: str # The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, but not both., tool_guid: str # The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both., before: str # A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.7/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", after: str # A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.7/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", direction: str(asc/desc)=desc # The direction to sort the results by., state: str # If specified, only code scanning alerts with this state will be returned., sort: str(created/updated)=created # The property by which to sort the results.}\n@returns(200) Response\n@errors {404: Resource not found, 503: Service unavailable}\n\n@endpoint GET /enterprises/{enterprise}/secret-scanning/alerts\n@desc List secret scanning alerts for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id.}\n@optional {state: str(open/resolved) # Set to `open` or `resolved` to only list secret scanning alerts in a specific state., secret_type: str # A comma-separated list of secret types to return. By default all secret types are returned. See \"[Secret scanning patterns](https://docs.github.com/enterprise-server@3.7/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)\" for a complete list of secret types., resolution: str # A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`., sort: str(created/updated)=created # The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved., direction: str(asc/desc)=desc # The direction to sort the results by., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", before: str # A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.7/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", after: str # A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.7/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found, 503: Service unavailable}\n\n@endpoint GET /enterprises/{enterprise}/settings/billing/advanced-security\n@desc Get GitHub Advanced Security active committers for an enterprise\n@required {enterprise: str # The slug version of the enterprise name. You can also substitute this value with the enterprise id.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_advanced_security_committers: int, total_count: int, repositories: [map]} # Success\n@errors {403: Response if GitHub Advanced Security is not enabled for this repository}\n\n@endgroup\n\n@group events\n@endpoint GET /events\n@desc List public events\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 403: Forbidden, 503: Service unavailable}\n\n@endgroup\n\n@group feeds\n@endpoint GET /feeds\n@desc Get feeds\n@returns(200) {timeline_url: str, user_url: str, current_user_public_url: str, current_user_url: str, current_user_actor_url: str, current_user_organization_url: str, current_user_organization_urls: [str(uri)], security_advisories_url: str, repository_discussions_url: str, repository_discussions_category_url: str, _links: map{timeline: map{href: str, type: str}, user: map{href: str, type: str}, security_advisories: map{href: str, type: str}, current_user: map{href: str, type: str}, current_user_public: map{href: str, type: str}, current_user_actor: map{href: str, type: str}, current_user_organization: map{href: str, type: str}, current_user_organizations: [map], repository_discussions: map{href: str, type: str}, repository_discussions_category: map{href: str, type: str}}} # Response\n\n@endgroup\n\n@group gists\n@endpoint GET /gists\n@desc List gists for the authenticated user\n@optional {since: str(date-time) # Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 403: Forbidden}\n\n@endpoint POST /gists\n@desc Create a gist\n@required {files: map # Names and content for the files that make up the gist}\n@optional {description: str # Description of the gist, public: any}\n@returns(201) {forks: [map]?, history: [map]?, fork_of: map?{url: str(uri), forks_url: str(uri), commits_url: str(uri), id: str, node_id: str, git_pull_url: str(uri), git_push_url: str(uri), html_url: str(uri), files: map, public: bool, created_at: str(date-time), updated_at: str(date-time), description: str?, comments: int, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, comments_url: str(uri), owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, truncated: bool, forks: [any], history: [any]}, url: str, forks_url: str, commits_url: str, id: str, node_id: str, git_pull_url: str, git_push_url: str, html_url: str, files: map, public: bool, created_at: str, updated_at: str, description: str?, comments: int, user: str?, comments_url: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, truncated: bool} # Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"description\":\"Example of a gist\",\"public\":false,\"files\":{\"README.md\":{\"content\":\"Hello World\"}}}\n\n@endpoint GET /gists/public\n@desc List public gists\n@optional {since: str(date-time) # Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /gists/starred\n@desc List starred gists\n@optional {since: str(date-time) # Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint GET /gists/{gist_id}\n@desc Get a gist\n@required {gist_id: str # The unique identifier of the gist.}\n@returns(200) {forks: [map]?, history: [map]?, fork_of: map?{url: str(uri), forks_url: str(uri), commits_url: str(uri), id: str, node_id: str, git_pull_url: str(uri), git_push_url: str(uri), html_url: str(uri), files: map, public: bool, created_at: str(date-time), updated_at: str(date-time), description: str?, comments: int, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, comments_url: str(uri), owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, truncated: bool, forks: [any], history: [any]}, url: str, forks_url: str, commits_url: str, id: str, node_id: str, git_pull_url: str, git_push_url: str, html_url: str, files: map, public: bool, created_at: str, updated_at: str, description: str?, comments: int, user: str?, comments_url: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, truncated: bool} # Response\n@errors {304: Not modified, 403: Forbidden Gist, 404: Resource not found}\n\n@endpoint PATCH /gists/{gist_id}\n@desc Update a gist\n@required {gist_id: str # The unique identifier of the gist.}\n@optional {description: str # The description of the gist., files: map # The gist files to be updated, renamed, or deleted. Each `key` must match the current filename (including extension) of the targeted gist file. For example: `hello.py`.  To delete a file, set the whole file to null. For example: `hello.py : null`. The file will also be deleted if the specified object does not contain at least one of `content` or `filename`.}\n@returns(200) {forks: [map]?, history: [map]?, fork_of: map?{url: str(uri), forks_url: str(uri), commits_url: str(uri), id: str, node_id: str, git_pull_url: str(uri), git_push_url: str(uri), html_url: str(uri), files: map, public: bool, created_at: str(date-time), updated_at: str(date-time), description: str?, comments: int, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, comments_url: str(uri), owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, truncated: bool, forks: [any], history: [any]}, url: str, forks_url: str, commits_url: str, id: str, node_id: str, git_pull_url: str, git_push_url: str, html_url: str, files: map, public: bool, created_at: str, updated_at: str, description: str?, comments: int, user: str?, comments_url: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, truncated: bool} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"description\":\"An updated gist description\",\"files\":{\"README.md\":{\"content\":\"Hello World from GitHub\"}}}\n\n@endpoint DELETE /gists/{gist_id}\n@desc Delete a gist\n@required {gist_id: str # The unique identifier of the gist.}\n@returns(204) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /gists/{gist_id}/comments\n@desc List gist comments\n@required {gist_id: str # The unique identifier of the gist.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint POST /gists/{gist_id}/comments\n@desc Create a gist comment\n@required {gist_id: str # The unique identifier of the gist., body: str # The comment text.}\n@returns(201) {id: int, node_id: str, url: str(uri), body: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), author_association: str} # Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n@example_request {\"body\":\"This is a comment to a gist\"}\n\n@endpoint GET /gists/{gist_id}/comments/{comment_id}\n@desc Get a gist comment\n@required {gist_id: str # The unique identifier of the gist., comment_id: int # The unique identifier of the comment.}\n@returns(200) {id: int, node_id: str, url: str(uri), body: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), author_association: str} # Response\n@errors {304: Not modified, 403: Forbidden Gist, 404: Resource not found}\n\n@endpoint PATCH /gists/{gist_id}/comments/{comment_id}\n@desc Update a gist comment\n@required {gist_id: str # The unique identifier of the gist., comment_id: int # The unique identifier of the comment., body: str # The comment text.}\n@returns(200) {id: int, node_id: str, url: str(uri), body: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), author_association: str} # Response\n@errors {404: Resource not found}\n@example_request {\"body\":\"This is an update to a comment in a gist\"}\n\n@endpoint DELETE /gists/{gist_id}/comments/{comment_id}\n@desc Delete a gist comment\n@required {gist_id: str # The unique identifier of the gist., comment_id: int # The unique identifier of the comment.}\n@returns(204) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /gists/{gist_id}/commits\n@desc List gist commits\n@required {gist_id: str # The unique identifier of the gist.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /gists/{gist_id}/forks\n@desc List gist forks\n@required {gist_id: str # The unique identifier of the gist.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint POST /gists/{gist_id}/forks\n@desc Fork a gist\n@required {gist_id: str # The unique identifier of the gist.}\n@returns(201) {url: str(uri), forks_url: str(uri), commits_url: str(uri), id: str, node_id: str, git_pull_url: str(uri), git_push_url: str(uri), html_url: str(uri), files: map, public: bool, created_at: str(date-time), updated_at: str(date-time), description: str?, comments: int, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, comments_url: str(uri), owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, truncated: bool, forks: [any], history: [any]} # Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /gists/{gist_id}/star\n@desc Check if a gist is starred\n@required {gist_id: str # The unique identifier of the gist.}\n@returns(204) Response if gist is starred\n@errors {304: Not modified, 403: Forbidden, 404: Not Found if gist is not starred}\n\n@endpoint PUT /gists/{gist_id}/star\n@desc Star a gist\n@required {gist_id: str # The unique identifier of the gist.}\n@returns(204) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint DELETE /gists/{gist_id}/star\n@desc Unstar a gist\n@required {gist_id: str # The unique identifier of the gist.}\n@returns(204) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /gists/{gist_id}/{sha}\n@desc Get a gist revision\n@required {gist_id: str # The unique identifier of the gist., sha: str}\n@returns(200) {forks: [map]?, history: [map]?, fork_of: map?{url: str(uri), forks_url: str(uri), commits_url: str(uri), id: str, node_id: str, git_pull_url: str(uri), git_push_url: str(uri), html_url: str(uri), files: map, public: bool, created_at: str(date-time), updated_at: str(date-time), description: str?, comments: int, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, comments_url: str(uri), owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, truncated: bool, forks: [any], history: [any]}, url: str, forks_url: str, commits_url: str, id: str, node_id: str, git_pull_url: str, git_push_url: str, html_url: str, files: map, public: bool, created_at: str, updated_at: str, description: str?, comments: int, user: str?, comments_url: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, truncated: bool} # Response\n@errors {403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endgroup\n\n@group gitignore\n@endpoint GET /gitignore/templates\n@desc Get all gitignore templates\n@returns(200) Response\n@errors {304: Not modified}\n\n@endpoint GET /gitignore/templates/{name}\n@desc Get a gitignore template\n@required {name: str}\n@returns(200) {name: str, source: str} # Response\n@errors {304: Not modified}\n\n@endgroup\n\n@group installation\n@endpoint GET /installation/repositories\n@desc List repositories accessible to the app installation\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, repositories: [map], repository_selection: str} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint DELETE /installation/token\n@desc Revoke an installation access token\n@returns(204) Response\n\n@endgroup\n\n@group issues\n@endpoint GET /issues\n@desc List issues assigned to the authenticated user\n@optional {filter: str(assigned/created/mentioned/subscribed/repos/all)=assigned # Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation., state: str(open/closed/all)=open # Indicates the state of the issues to return., labels: str # A list of comma separated label names. Example: `bug,ui,@high`, sort: str(created/updated/comments)=created # What to sort results by., direction: str(asc/desc)=desc # The direction to sort the results by., since: str(date-time) # Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., collab: bool, orgs: bool, owned: bool, pulls: bool, per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endgroup\n\n@group licenses\n@endpoint GET /licenses\n@desc Get all commonly used licenses\n@optional {featured: bool, per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified}\n\n@endpoint GET /licenses/{license}\n@desc Get a license\n@required {license: str}\n@returns(200) {key: str, name: str, spdx_id: str?, url: str(uri)?, node_id: str, html_url: str(uri), description: str, implementation: str, permissions: [str], conditions: [str], limitations: [str], body: str, featured: bool} # Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endgroup\n\n@group markdown\n@endpoint POST /markdown\n@desc Render a Markdown document\n@required {text: str # The Markdown text to render in HTML.}\n@optional {mode: str(markdown/gfm)=markdown # The rendering mode., context: str # The repository context to use when creating references in `gfm` mode.  For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.}\n@returns(200) Response\n@errors {304: Not modified}\n@example_request {\"text\":\"Hello **world**\"}\n\n@endpoint POST /markdown/raw\n@desc Render a Markdown document in raw mode\n@returns(200) Response\n@errors {304: Not modified}\n\n@endgroup\n\n@group meta\n@endpoint GET /meta\n@desc Get GitHub Enterprise Server meta information\n@returns(200) {verifiable_password_authentication: bool, packages: [str], dependabot: [str], domains: map{website: [str], codespaces: [str], copilot: [str], packages: [str], actions: [str]}, installed_version: str} # Response\n@errors {304: Not modified}\n\n@endgroup\n\n@group networks\n@endpoint GET /networks/{owner}/{repo}/events\n@desc List public events for a network of repositories\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {301: Moved permanently, 304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endgroup\n\n@group notifications\n@endpoint GET /notifications\n@desc List notifications for the authenticated user\n@optional {all: bool=false # If `true`, show notifications marked as read., participating: bool=false # If `true`, only shows notifications in which the user is directly participating or mentioned., since: str(date-time) # Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., before: str(date-time) # Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", per_page: int=50 # The number of results per page (max 50). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint PUT /notifications\n@desc Mark notifications as read\n@optional {last_read_at: str(date-time) # Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp., read: bool # Whether the notification has been read.}\n@returns(202) {message: str} # Response\n@returns(205) Reset Content\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n@example_request {\"last_read_at\":\"2022-06-10T00:00:00Z\",\"read\":true}\n\n@endpoint GET /notifications/threads/{thread_id}\n@desc Get a thread\n@required {thread_id: int # The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/enterprise-server@3.7/rest/activity/notifications#list-notifications-for-the-authenticated-user)).}\n@returns(200) {id: str, repository: map{id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, role_name: str, temp_clone_token: str, delete_branch_on_merge: bool, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, web_commit_signoff_required: bool}, subject: map{title: str, url: str, latest_comment_url: str, type: str}, reason: str, unread: bool, updated_at: str, last_read_at: str?, url: str, subscription_url: str} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint PATCH /notifications/threads/{thread_id}\n@desc Mark a thread as read\n@required {thread_id: int # The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/enterprise-server@3.7/rest/activity/notifications#list-notifications-for-the-authenticated-user)).}\n@returns(205) Reset Content\n@errors {304: Not modified, 403: Forbidden}\n\n@endpoint GET /notifications/threads/{thread_id}/subscription\n@desc Get a thread subscription for the authenticated user\n@required {thread_id: int # The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/enterprise-server@3.7/rest/activity/notifications#list-notifications-for-the-authenticated-user)).}\n@returns(200) {subscribed: bool, ignored: bool, reason: str?, created_at: str(date-time)?, url: str(uri), thread_url: str(uri), repository_url: str(uri)} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint PUT /notifications/threads/{thread_id}/subscription\n@desc Set a thread subscription\n@required {thread_id: int # The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/enterprise-server@3.7/rest/activity/notifications#list-notifications-for-the-authenticated-user)).}\n@optional {ignored: bool=false # Whether to block all notifications from a thread.}\n@returns(200) {subscribed: bool, ignored: bool, reason: str?, created_at: str(date-time)?, url: str(uri), thread_url: str(uri), repository_url: str(uri)} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n@example_request {\"ignored\":false}\n\n@endpoint DELETE /notifications/threads/{thread_id}/subscription\n@desc Delete a thread subscription\n@required {thread_id: int # The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/enterprise-server@3.7/rest/activity/notifications#list-notifications-for-the-authenticated-user)).}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endgroup\n\n@group octocat\n@endpoint GET /octocat\n@desc Get Octocat\n@optional {s: str # The words to show in Octocat's speech bubble}\n@returns(200) Response\n\n@endgroup\n\n@group organizations\n@endpoint GET /organizations\n@desc List organizations\n@optional {since: int # An organization ID. Only return organizations with an ID greater than this ID., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified}\n\n@endpoint GET /organizations/{organization_id}/custom_roles\n@desc List custom repository roles in an organization\n@required {organization_id: str # The unique identifier of the organization.}\n@returns(200) {total_count: int, custom_roles: [map]} # Response - list of custom role names\n\n@endgroup\n\n@group orgs\n@endpoint GET /orgs/{org}\n@desc Get an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@returns(200) {login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?, name: str, company: str, blog: str(uri), location: str, email: str(email), twitter_username: str?, is_verified: bool, has_organization_projects: bool, has_repository_projects: bool, public_repos: int, public_gists: int, followers: int, following: int, html_url: str(uri), type: str, total_private_repos: int, owned_private_repos: int, private_gists: int?, disk_usage: int?, collaborators: int?, billing_email: str(email)?, plan: map{name: str, space: int, private_repos: int, filled_seats: int, seats: int}, default_repository_permission: str?, members_can_create_repositories: bool?, two_factor_requirement_enabled: bool?, members_allowed_repository_creation_type: str, members_can_create_public_repositories: bool, members_can_create_private_repositories: bool, members_can_create_internal_repositories: bool, members_can_create_pages: bool, members_can_create_public_pages: bool, members_can_create_private_pages: bool, members_can_fork_private_repositories: bool?, web_commit_signoff_required: bool, advanced_security_enabled_for_new_repositories: bool, dependabot_alerts_enabled_for_new_repositories: bool, dependabot_security_updates_enabled_for_new_repositories: bool, dependency_graph_enabled_for_new_repositories: bool, secret_scanning_enabled_for_new_repositories: bool, secret_scanning_push_protection_enabled_for_new_repositories: bool, created_at: str(date-time), updated_at: str(date-time)} # Response\n@errors {404: Resource not found}\n\n@endpoint PATCH /orgs/{org}\n@desc Update an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {billing_email: str # Billing email address. This address is not publicized., company: str # The company name., email: str # The publicly visible email address., twitter_username: str # The Twitter username of the company., location: str # The location., name: str # The shorthand name of the company., description: str # The description of the company., has_organization_projects: bool # Whether an organization can use organization projects., has_repository_projects: bool # Whether repositories that belong to the organization can use repository projects., default_repository_permission: str(read/write/admin/none)=read # Default permission level members have for organization repositories., members_can_create_repositories: bool=true # Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details., members_can_create_internal_repositories: bool # Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see \"[Restricting repository creation in your organization](https://docs.github.com/enterprise-server@3.7/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation., members_can_create_private_repositories: bool # Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see \"[Restricting repository creation in your organization](https://docs.github.com/enterprise-server@3.7/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation., members_can_create_public_repositories: bool # Whether organization members can create public repositories, which are visible to anyone. For more information, see \"[Restricting repository creation in your organization](https://docs.github.com/enterprise-server@3.7/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation., members_allowed_repository_creation_type: str(all/private/none) # Specifies which types of repositories non-admin organization members can create.  **Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details., members_can_create_pages: bool=true # Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted., members_can_fork_private_repositories: bool=false # Whether organization members can fork private organization repositories., web_commit_signoff_required: bool=false # Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface., blog: str, advanced_security_enabled_for_new_repositories: bool # Whether GitHub Advanced Security is automatically enabled for new repositories.  To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"[Managing security managers in your organization](https://docs.github.com/enterprise-server@3.7/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization).\"  You can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request., dependabot_alerts_enabled_for_new_repositories: bool # Whether Dependabot alerts is automatically enabled for new repositories.  To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"[Managing security managers in your organization](https://docs.github.com/enterprise-server@3.7/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization).\"  You can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request., dependabot_security_updates_enabled_for_new_repositories: bool # Whether Dependabot security updates is automatically enabled for new repositories.  To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"[Managing security managers in your organization](https://docs.github.com/enterprise-server@3.7/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization).\"  You can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request., dependency_graph_enabled_for_new_repositories: bool # Whether dependency graph is automatically enabled for new repositories.  To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"[Managing security managers in your organization](https://docs.github.com/enterprise-server@3.7/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization).\"  You can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request., secret_scanning_enabled_for_new_repositories: bool # Whether secret scanning is automatically enabled for new repositories.  To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"[Managing security managers in your organization](https://docs.github.com/enterprise-server@3.7/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization).\"  You can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request., secret_scanning_push_protection_enabled_for_new_repositories: bool # Whether secret scanning push protection is automatically enabled for new repositories.  To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"[Managing security managers in your organization](https://docs.github.com/enterprise-server@3.7/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization).\"  You can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.}\n@returns(200) {login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?, name: str, company: str, blog: str(uri), location: str, email: str(email), twitter_username: str?, is_verified: bool, has_organization_projects: bool, has_repository_projects: bool, public_repos: int, public_gists: int, followers: int, following: int, html_url: str(uri), type: str, total_private_repos: int, owned_private_repos: int, private_gists: int?, disk_usage: int?, collaborators: int?, billing_email: str(email)?, plan: map{name: str, space: int, private_repos: int, filled_seats: int, seats: int}, default_repository_permission: str?, members_can_create_repositories: bool?, two_factor_requirement_enabled: bool?, members_allowed_repository_creation_type: str, members_can_create_public_repositories: bool, members_can_create_private_repositories: bool, members_can_create_internal_repositories: bool, members_can_create_pages: bool, members_can_create_public_pages: bool, members_can_create_private_pages: bool, members_can_fork_private_repositories: bool?, web_commit_signoff_required: bool, advanced_security_enabled_for_new_repositories: bool, dependabot_alerts_enabled_for_new_repositories: bool, dependabot_security_updates_enabled_for_new_repositories: bool, dependency_graph_enabled_for_new_repositories: bool, secret_scanning_enabled_for_new_repositories: bool, secret_scanning_push_protection_enabled_for_new_repositories: bool, created_at: str(date-time), updated_at: str(date-time)} # Response\n@errors {409: Conflict, 422: Validation failed}\n@example_request {\"billing_email\":\"mona@github.com\",\"company\":\"GitHub\",\"email\":\"mona@github.com\",\"twitter_username\":\"github\",\"location\":\"San Francisco\",\"name\":\"github\",\"description\":\"GitHub, the company.\",\"default_repository_permission\":\"read\",\"members_can_create_repositories\":true,\"members_allowed_repository_creation_type\":\"all\"}\n\n@endpoint GET /orgs/{org}/actions/cache/usage\n@desc Get GitHub Actions cache usage for an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@returns(200) {total_active_caches_count: int, total_active_caches_size_in_bytes: int} # Response\n\n@endpoint GET /orgs/{org}/actions/cache/usage-by-repository\n@desc List repositories with GitHub Actions cache usage for an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, repository_cache_usages: [map]} # Response\n\n@endpoint GET /orgs/{org}/actions/oidc/customization/sub\n@desc Get the customization template for an OIDC subject claim for an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@returns(200) {include_claim_keys: [str]} # A JSON serialized template for OIDC subject claim customization\n\n@endpoint PUT /orgs/{org}/actions/oidc/customization/sub\n@desc Set the customization template for an OIDC subject claim for an organization\n@required {org: str # The organization name. The name is not case sensitive., include_claim_keys: [str] # Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.}\n@returns(201) Empty response\n@errors {403: Forbidden, 404: Resource not found}\n@example_request {\"include_claim_keys\":[\"repo\",\"context\"]}\n\n@endpoint GET /orgs/{org}/actions/permissions\n@desc Get GitHub Actions permissions for an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@returns(200) {enabled_repositories: str, selected_repositories_url: str, allowed_actions: str, selected_actions_url: str} # Response\n\n@endpoint PUT /orgs/{org}/actions/permissions\n@desc Set GitHub Actions permissions for an organization\n@required {org: str # The organization name. The name is not case sensitive., enabled_repositories: str(all/none/selected) # The policy that controls the repositories in the organization that are allowed to run GitHub Actions.}\n@optional {allowed_actions: str(all/local_only/selected) # The permissions policy that controls the actions that are allowed to run.}\n@returns(204) Response\n@example_request {\"enabled_repositories\":\"all\",\"allowed_actions\":\"selected\"}\n\n@endpoint GET /orgs/{org}/actions/permissions/repositories\n@desc List selected repositories enabled for GitHub Actions in an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: num, repositories: [map]} # Response\n\n@endpoint PUT /orgs/{org}/actions/permissions/repositories\n@desc Set selected repositories enabled for GitHub Actions in an organization\n@required {org: str # The organization name. The name is not case sensitive., selected_repository_ids: [int] # List of repository IDs to enable for GitHub Actions.}\n@returns(204) Response\n@example_request {\"selected_repository_ids\":[32,42]}\n\n@endpoint PUT /orgs/{org}/actions/permissions/repositories/{repository_id}\n@desc Enable a selected repository for GitHub Actions in an organization\n@required {org: str # The organization name. The name is not case sensitive., repository_id: int # The unique identifier of the repository.}\n@returns(204) Response\n\n@endpoint DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}\n@desc Disable a selected repository for GitHub Actions in an organization\n@required {org: str # The organization name. The name is not case sensitive., repository_id: int # The unique identifier of the repository.}\n@returns(204) Response\n\n@endpoint GET /orgs/{org}/actions/permissions/selected-actions\n@desc Get allowed actions for an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@returns(200) {github_owned_allowed: bool, patterns_allowed: [str]} # Response\n\n@endpoint PUT /orgs/{org}/actions/permissions/selected-actions\n@desc Set allowed actions for an organization\n@required {org: str # The organization name. The name is not case sensitive., github_owned_allowed: bool # Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization., patterns_allowed: [str] # Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.}\n@returns(204) Response\n@example_request {\"github_owned_allowed\":true,\"verified_allowed\":false,\"patterns_allowed\":[\"monalisa/octocat@*\",\"docker/*\"]}\n\n@endpoint GET /orgs/{org}/actions/permissions/workflow\n@desc Get default workflow permissions for an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@returns(200) {default_workflow_permissions: str, can_approve_pull_request_reviews: bool} # Response\n\n@endpoint PUT /orgs/{org}/actions/permissions/workflow\n@desc Set default workflow permissions for an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {default_workflow_permissions: str(read/write) # The default workflow permissions granted to the GITHUB_TOKEN when running workflows., can_approve_pull_request_reviews: bool # Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.}\n@returns(204) Success response\n@errors {409: Conflict response when changing a setting is prevented by the owning enterprise}\n@example_request {\"default_workflow_permissions\":\"read\",\"can_approve_pull_request_reviews\":true}\n\n@endpoint GET /orgs/{org}/actions/runner-groups\n@desc List self-hosted runner groups for an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", visible_to_repository: str # Only return runner groups that are allowed to be used by this repository.}\n@returns(200) {total_count: num, runner_groups: [map]} # Response\n\n@endpoint POST /orgs/{org}/actions/runner-groups\n@desc Create a self-hosted runner group for an organization\n@required {org: str # The organization name. The name is not case sensitive., name: str # Name of the runner group.}\n@optional {visibility: str(selected/all/private)=all # Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories., selected_repository_ids: [int] # List of repository IDs that can access the runner group., runners: [int] # List of runner IDs to add to the runner group., allows_public_repositories: bool=false # Whether the runner group can be used by `public` repositories., restricted_to_workflows: bool=false # If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array., selected_workflows: [str] # List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.}\n@returns(201) {id: num, name: str, visibility: str, default: bool, selected_repositories_url: str, runners_url: str, inherited: bool, inherited_allows_public_repositories: bool, allows_public_repositories: bool, workflow_restrictions_read_only: bool, restricted_to_workflows: bool, selected_workflows: [str]} # Response\n@example_request {\"name\":\"Expensive hardware runners\",\"visibility\":\"selected\",\"selected_repository_ids\":[32,91],\"runners\":[9,2]}\n\n@endpoint GET /orgs/{org}/actions/runner-groups/{runner_group_id}\n@desc Get a self-hosted runner group for an organization\n@required {org: str # The organization name. The name is not case sensitive., runner_group_id: int # Unique identifier of the self-hosted runner group.}\n@returns(200) {id: num, name: str, visibility: str, default: bool, selected_repositories_url: str, runners_url: str, inherited: bool, inherited_allows_public_repositories: bool, allows_public_repositories: bool, workflow_restrictions_read_only: bool, restricted_to_workflows: bool, selected_workflows: [str]} # Response\n\n@endpoint PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}\n@desc Update a self-hosted runner group for an organization\n@required {org: str # The organization name. The name is not case sensitive., runner_group_id: int # Unique identifier of the self-hosted runner group., name: str # Name of the runner group.}\n@optional {visibility: str(selected/all/private) # Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories., allows_public_repositories: bool=false # Whether the runner group can be used by `public` repositories., restricted_to_workflows: bool=false # If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array., selected_workflows: [str] # List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.}\n@returns(200) {id: num, name: str, visibility: str, default: bool, selected_repositories_url: str, runners_url: str, inherited: bool, inherited_allows_public_repositories: bool, allows_public_repositories: bool, workflow_restrictions_read_only: bool, restricted_to_workflows: bool, selected_workflows: [str]} # Response\n@example_request {\"name\":\"Expensive hardware runners\",\"visibility\":\"selected\"}\n\n@endpoint DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}\n@desc Delete a self-hosted runner group from an organization\n@required {org: str # The organization name. The name is not case sensitive., runner_group_id: int # Unique identifier of the self-hosted runner group.}\n@returns(204) Response\n\n@endpoint GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories\n@desc List repository access to a self-hosted runner group in an organization\n@required {org: str # The organization name. The name is not case sensitive., runner_group_id: int # Unique identifier of the self-hosted runner group.}\n@optional {page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: num, repositories: [map]} # Response\n\n@endpoint PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories\n@desc Set repository access for a self-hosted runner group in an organization\n@required {org: str # The organization name. The name is not case sensitive., runner_group_id: int # Unique identifier of the self-hosted runner group., selected_repository_ids: [int] # List of repository IDs that can access the runner group.}\n@returns(204) Response\n@example_request {\"selected_repository_ids\":[32,91]}\n\n@endpoint PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}\n@desc Add repository access to a self-hosted runner group in an organization\n@required {org: str # The organization name. The name is not case sensitive., runner_group_id: int # Unique identifier of the self-hosted runner group., repository_id: int # The unique identifier of the repository.}\n@returns(204) Response\n\n@endpoint DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}\n@desc Remove repository access to a self-hosted runner group in an organization\n@required {org: str # The organization name. The name is not case sensitive., runner_group_id: int # Unique identifier of the self-hosted runner group., repository_id: int # The unique identifier of the repository.}\n@returns(204) Response\n\n@endpoint GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners\n@desc List self-hosted runners in a group for an organization\n@required {org: str # The organization name. The name is not case sensitive., runner_group_id: int # Unique identifier of the self-hosted runner group.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: num, runners: [map]} # Response\n\n@endpoint PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners\n@desc Set self-hosted runners in a group for an organization\n@required {org: str # The organization name. The name is not case sensitive., runner_group_id: int # Unique identifier of the self-hosted runner group., runners: [int] # List of runner IDs to add to the runner group.}\n@returns(204) Response\n@example_request {\"runners\":[9,2]}\n\n@endpoint PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}\n@desc Add a self-hosted runner to a group for an organization\n@required {org: str # The organization name. The name is not case sensitive., runner_group_id: int # Unique identifier of the self-hosted runner group., runner_id: int # Unique identifier of the self-hosted runner.}\n@returns(204) Response\n\n@endpoint DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}\n@desc Remove a self-hosted runner from a group for an organization\n@required {org: str # The organization name. The name is not case sensitive., runner_group_id: int # Unique identifier of the self-hosted runner group., runner_id: int # Unique identifier of the self-hosted runner.}\n@returns(204) Response\n\n@endpoint GET /orgs/{org}/actions/runners\n@desc List self-hosted runners for an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, runners: [map]} # Response\n\n@endpoint GET /orgs/{org}/actions/runners/downloads\n@desc List runner applications for an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@returns(200) Response\n\n@endpoint POST /orgs/{org}/actions/runners/registration-token\n@desc Create a registration token for an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@returns(201) {token: str, expires_at: str(date-time), permissions: map, repositories: [map], single_file: str?, repository_selection: str} # Response\n\n@endpoint POST /orgs/{org}/actions/runners/remove-token\n@desc Create a remove token for an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@returns(201) {token: str, expires_at: str(date-time), permissions: map, repositories: [map], single_file: str?, repository_selection: str} # Response\n\n@endpoint GET /orgs/{org}/actions/runners/{runner_id}\n@desc Get a self-hosted runner for an organization\n@required {org: str # The organization name. The name is not case sensitive., runner_id: int # Unique identifier of the self-hosted runner.}\n@returns(200) {id: int, runner_group_id: int, name: str, os: str, status: str, busy: bool, labels: [map]} # Response\n\n@endpoint DELETE /orgs/{org}/actions/runners/{runner_id}\n@desc Delete a self-hosted runner from an organization\n@required {org: str # The organization name. The name is not case sensitive., runner_id: int # Unique identifier of the self-hosted runner.}\n@returns(204) Response\n\n@endpoint GET /orgs/{org}/actions/runners/{runner_id}/labels\n@desc List labels for a self-hosted runner for an organization\n@required {org: str # The organization name. The name is not case sensitive., runner_id: int # Unique identifier of the self-hosted runner.}\n@returns(200) {total_count: int, labels: [map]} # Response\n@errors {404: Resource not found}\n\n@endpoint POST /orgs/{org}/actions/runners/{runner_id}/labels\n@desc Add custom labels to a self-hosted runner for an organization\n@required {org: str # The organization name. The name is not case sensitive., runner_id: int # Unique identifier of the self-hosted runner., labels: [str] # The names of the custom labels to add to the runner.}\n@returns(200) {total_count: int, labels: [map]} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"labels\":[\"gpu\",\"accelerated\"]}\n\n@endpoint PUT /orgs/{org}/actions/runners/{runner_id}/labels\n@desc Set custom labels for a self-hosted runner for an organization\n@required {org: str # The organization name. The name is not case sensitive., runner_id: int # Unique identifier of the self-hosted runner., labels: [str] # The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.}\n@returns(200) {total_count: int, labels: [map]} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"labels\":[\"gpu\",\"accelerated\"]}\n\n@endpoint DELETE /orgs/{org}/actions/runners/{runner_id}/labels\n@desc Remove all custom labels from a self-hosted runner for an organization\n@required {org: str # The organization name. The name is not case sensitive., runner_id: int # Unique identifier of the self-hosted runner.}\n@returns(200) {total_count: int, labels: [map]} # Response\n@errors {404: Resource not found}\n\n@endpoint DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}\n@desc Remove a custom label from a self-hosted runner for an organization\n@required {org: str # The organization name. The name is not case sensitive., runner_id: int # Unique identifier of the self-hosted runner., name: str # The name of a self-hosted runner's custom label.}\n@returns(200) {total_count: int, labels: [map]} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /orgs/{org}/actions/secrets\n@desc List organization secrets\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, secrets: [map]} # Response\n\n@endpoint GET /orgs/{org}/actions/secrets/public-key\n@desc Get an organization public key\n@required {org: str # The organization name. The name is not case sensitive.}\n@returns(200) {key_id: str, key: str, id: int, url: str, title: str, created_at: str} # Response\n\n@endpoint GET /orgs/{org}/actions/secrets/{secret_name}\n@desc Get an organization secret\n@required {org: str # The organization name. The name is not case sensitive., secret_name: str # The name of the secret.}\n@returns(200) {name: str, created_at: str(date-time), updated_at: str(date-time), visibility: str, selected_repositories_url: str(uri)} # Response\n\n@endpoint PUT /orgs/{org}/actions/secrets/{secret_name}\n@desc Create or update an organization secret\n@required {org: str # The organization name. The name is not case sensitive., secret_name: str # The name of the secret., visibility: str(all/private/selected) # Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret.}\n@optional {encrypted_value: str # Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-server@3.7/rest/actions/secrets#get-an-organization-public-key) endpoint., key_id: str # ID of the key you used to encrypt the secret., selected_repository_ids: [int] # An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.7/rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.7/rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.7/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints.}\n@returns(201) Response when creating a secret\n@returns(204) Response when updating a secret\n@example_request {\"encrypted_value\":\"c2VjcmV0\",\"key_id\":\"012345678912345678\",\"visibility\":\"selected\",\"selected_repository_ids\":[1296269,1296280]}\n\n@endpoint DELETE /orgs/{org}/actions/secrets/{secret_name}\n@desc Delete an organization secret\n@required {org: str # The organization name. The name is not case sensitive., secret_name: str # The name of the secret.}\n@returns(204) Response\n\n@endpoint GET /orgs/{org}/actions/secrets/{secret_name}/repositories\n@desc List selected repositories for an organization secret\n@required {org: str # The organization name. The name is not case sensitive., secret_name: str # The name of the secret.}\n@optional {page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, repositories: [map]} # Response\n\n@endpoint PUT /orgs/{org}/actions/secrets/{secret_name}/repositories\n@desc Set selected repositories for an organization secret\n@required {org: str # The organization name. The name is not case sensitive., secret_name: str # The name of the secret., selected_repository_ids: [int] # An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/enterprise-server@3.7/rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.7/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints.}\n@returns(204) Response\n@example_request {\"selected_repository_ids\":[64780797]}\n\n@endpoint PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}\n@desc Add selected repository to an organization secret\n@required {org: str # The organization name. The name is not case sensitive., secret_name: str # The name of the secret., repository_id: int}\n@returns(204) No Content when repository was added to the selected list\n@errors {409: Conflict when visibility type is not set to selected}\n\n@endpoint DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}\n@desc Remove selected repository from an organization secret\n@required {org: str # The organization name. The name is not case sensitive., secret_name: str # The name of the secret., repository_id: int}\n@returns(204) Response when repository was removed from the selected list\n@errors {409: Conflict when visibility type not set to selected}\n\n@endpoint GET /orgs/{org}/audit-log\n@desc Get the audit log for an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {phrase: str # A search phrase. For more information, see [Searching the audit log](https://docs.github.com/enterprise-server@3.7/github/setting-up-and-managing-organizations-and-teams/reviewing-the-audit-log-for-your-organization#searching-the-audit-log)., include: str(web/git/all) # The event types to include:  - `web` - returns web (non-Git) events. - `git` - returns Git events. - `all` - returns both web and Git events.  The default is `web`., after: str # A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.7/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events after this cursor., before: str # A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.7/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor., order: str(desc/asc) # The order of audit log events. To list newest events first, specify `desc`. To list oldest events first, specify `asc`.  The default is `desc`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /orgs/{org}/code-scanning/alerts\n@desc List code scanning alerts for an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {tool_name: str # The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, but not both., tool_guid: str # The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both., before: str # A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.7/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", after: str # A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.7/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", direction: str(asc/desc)=desc # The direction to sort the results by., state: str # If specified, only code scanning alerts with this state will be returned., sort: str(created/updated)=created # The property by which to sort the results.}\n@returns(200) Response\n@errors {404: Resource not found, 503: Service unavailable}\n\n@endpoint GET /orgs/{org}/dependabot/secrets\n@desc List organization secrets\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, secrets: [map]} # Response\n\n@endpoint GET /orgs/{org}/dependabot/secrets/public-key\n@desc Get an organization public key\n@required {org: str # The organization name. The name is not case sensitive.}\n@returns(200) {key_id: str, key: str} # Response\n\n@endpoint GET /orgs/{org}/dependabot/secrets/{secret_name}\n@desc Get an organization secret\n@required {org: str # The organization name. The name is not case sensitive., secret_name: str # The name of the secret.}\n@returns(200) {name: str, created_at: str(date-time), updated_at: str(date-time), visibility: str, selected_repositories_url: str(uri)} # Response\n\n@endpoint PUT /orgs/{org}/dependabot/secrets/{secret_name}\n@desc Create or update an organization secret\n@required {org: str # The organization name. The name is not case sensitive., secret_name: str # The name of the secret., visibility: str(all/private/selected) # Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret.}\n@optional {encrypted_value: str # Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-server@3.7/rest/dependabot/secrets#get-an-organization-public-key) endpoint., key_id: str # ID of the key you used to encrypt the secret., selected_repository_ids: [str] # An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.7/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.7/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.7/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.}\n@returns(201) Response when creating a secret\n@returns(204) Response when updating a secret\n@example_request {\"encrypted_value\":\"c2VjcmV0\",\"key_id\":\"012345678912345678\",\"visibility\":\"selected\",\"selected_repository_ids\":[\"1296269\",\"1296280\"]}\n\n@endpoint DELETE /orgs/{org}/dependabot/secrets/{secret_name}\n@desc Delete an organization secret\n@required {org: str # The organization name. The name is not case sensitive., secret_name: str # The name of the secret.}\n@returns(204) Response\n\n@endpoint GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories\n@desc List selected repositories for an organization secret\n@required {org: str # The organization name. The name is not case sensitive., secret_name: str # The name of the secret.}\n@optional {page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, repositories: [map]} # Response\n\n@endpoint PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories\n@desc Set selected repositories for an organization secret\n@required {org: str # The organization name. The name is not case sensitive., secret_name: str # The name of the secret., selected_repository_ids: [int] # An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.7/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.7/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.}\n@returns(204) Response\n@example_request {\"selected_repository_ids\":[64780797]}\n\n@endpoint PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}\n@desc Add selected repository to an organization secret\n@required {org: str # The organization name. The name is not case sensitive., secret_name: str # The name of the secret., repository_id: int}\n@returns(204) No Content when repository was added to the selected list\n@errors {409: Conflict when visibility type is not set to selected}\n\n@endpoint DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}\n@desc Remove selected repository from an organization secret\n@required {org: str # The organization name. The name is not case sensitive., secret_name: str # The name of the secret., repository_id: int}\n@returns(204) Response when repository was removed from the selected list\n@errors {409: Conflict when visibility type not set to selected}\n\n@endpoint GET /orgs/{org}/events\n@desc List public organization events\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /orgs/{org}/external-group/{group_id}\n@desc Get an external group\n@required {org: str # The organization name. The name is not case sensitive., group_id: int # The unique identifier of the group.}\n@returns(200) {group_id: int, group_name: str, updated_at: str, teams: [map], members: [map]} # Response\n\n@endpoint GET /orgs/{org}/external-groups\n@desc List external groups in an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int # Page token, display_name: str # Limits the list to groups containing the text in the group name}\n@returns(200) {groups: [map]} # Response\n\n@endpoint GET /orgs/{org}/hooks\n@desc List organization webhooks\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /orgs/{org}/hooks\n@desc Create an organization webhook\n@required {org: str # The organization name. The name is not case sensitive., name: str # Must be passed as \"web\"., config: map{url!: str(uri), content_type: str, secret: str, insecure_ssl: any, username: str, password: str} # Key/value pairs to provide settings for this webhook.}\n@optional {events: [str]=push # Determines what [events](https://docs.github.com/enterprise-server@3.7/webhooks/event-payloads) the hook is triggered for. Set to `[\"*\"]` to receive all possible events., active: bool=true # Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.}\n@returns(201) {id: int, url: str(uri), ping_url: str(uri), deliveries_url: str(uri), name: str, events: [str], active: bool, config: map{url: str, insecure_ssl: str, content_type: str, secret: str}, updated_at: str(date-time), created_at: str(date-time), type: str} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"name\":\"web\",\"active\":true,\"events\":[\"push\",\"pull_request\"],\"config\":{\"url\":\"http://example.com/webhook\",\"content_type\":\"json\"}}\n\n@endpoint GET /orgs/{org}/hooks/{hook_id}\n@desc Get an organization webhook\n@required {org: str # The organization name. The name is not case sensitive., hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.}\n@returns(200) {id: int, url: str(uri), ping_url: str(uri), deliveries_url: str(uri), name: str, events: [str], active: bool, config: map{url: str, insecure_ssl: str, content_type: str, secret: str}, updated_at: str(date-time), created_at: str(date-time), type: str} # Response\n@errors {404: Resource not found}\n\n@endpoint PATCH /orgs/{org}/hooks/{hook_id}\n@desc Update an organization webhook\n@required {org: str # The organization name. The name is not case sensitive., hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.}\n@optional {config: map{url!: str(uri), content_type: str, secret: str, insecure_ssl: any} # Key/value pairs to provide settings for this webhook., events: [str]=push # Determines what [events](https://docs.github.com/enterprise-server@3.7/webhooks/event-payloads) the hook is triggered for., active: bool=true # Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications., name: str}\n@returns(200) {id: int, url: str(uri), ping_url: str(uri), deliveries_url: str(uri), name: str, events: [str], active: bool, config: map{url: str, insecure_ssl: str, content_type: str, secret: str}, updated_at: str(date-time), created_at: str(date-time), type: str} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"active\":true,\"events\":[\"pull_request\"]}\n\n@endpoint DELETE /orgs/{org}/hooks/{hook_id}\n@desc Delete an organization webhook\n@required {org: str # The organization name. The name is not case sensitive., hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint GET /orgs/{org}/hooks/{hook_id}/config\n@desc Get a webhook configuration for an organization\n@required {org: str # The organization name. The name is not case sensitive., hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.}\n@returns(200) {url: str(uri), content_type: str, secret: str, insecure_ssl: any} # Response\n\n@endpoint PATCH /orgs/{org}/hooks/{hook_id}/config\n@desc Update a webhook configuration for an organization\n@required {org: str # The organization name. The name is not case sensitive., hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.}\n@optional {url: str(uri) # The URL to which the payloads will be delivered., content_type: str # The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`., secret: str # If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.7/webhooks/event-payloads/#delivery-headers)., insecure_ssl: any}\n@returns(200) {url: str(uri), content_type: str, secret: str, insecure_ssl: any} # Response\n@example_request {\"url\":\"http://example.com/webhook\",\"content_type\":\"json\",\"insecure_ssl\":\"0\",\"secret\":\"********\"}\n\n@endpoint GET /orgs/{org}/hooks/{hook_id}/deliveries\n@desc List deliveries for an organization webhook\n@required {org: str # The organization name. The name is not case sensitive., hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", cursor: str # Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors., redelivery: bool}\n@returns(200) Response\n@errors {400: Bad Request, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}\n@desc Get a webhook delivery for an organization webhook\n@required {org: str # The organization name. The name is not case sensitive., hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery., delivery_id: int}\n@returns(200) {id: int, guid: str, delivered_at: str(date-time), redelivery: bool, duration: num, status: str, status_code: int, event: str, action: str?, installation_id: int?, repository_id: int?, url: str, request: map{headers: map?, payload: map?}, response: map{headers: map?, payload: str?}} # Response\n@errors {400: Bad Request, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts\n@desc Redeliver a delivery for an organization webhook\n@required {org: str # The organization name. The name is not case sensitive., hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery., delivery_id: int}\n@returns(202) Accepted\n@errors {400: Bad Request, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint POST /orgs/{org}/hooks/{hook_id}/pings\n@desc Ping an organization webhook\n@required {org: str # The organization name. The name is not case sensitive., hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint GET /orgs/{org}/installation\n@desc Get an organization installation for the authenticated app\n@required {org: str # The organization name. The name is not case sensitive.}\n@returns(200) {id: int, account: any?, repository_selection: str, access_tokens_url: str(uri), repositories_url: str(uri), html_url: str(uri), app_id: int, target_id: int, target_type: str, permissions: map{actions: str, administration: str, checks: str, codespaces: str, contents: str, dependabot_secrets: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_copilot_seat_management: str, organization_events: str, organization_hooks: str, organization_personal_access_tokens: str, organization_personal_access_token_requests: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str, email_addresses: str, followers: str, git_ssh_keys: str, gpg_keys: str, interaction_limits: str, profile: str, starring: str}, events: [str], created_at: str(date-time), updated_at: str(date-time), single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], app_slug: str, suspended_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, suspended_at: str(date-time)?, contact_email: str?} # Response\n\n@endpoint GET /orgs/{org}/installations\n@desc List app installations for an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, installations: [map]} # Response\n\n@endpoint GET /orgs/{org}/issues\n@desc List organization issues assigned to the authenticated user\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {filter: str(assigned/created/mentioned/subscribed/repos/all)=assigned # Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation., state: str(open/closed/all)=open # Indicates the state of the issues to return., labels: str # A list of comma separated label names. Example: `bug,ui,@high`, sort: str(created/updated/comments)=created # What to sort results by., direction: str(asc/desc)=desc # The direction to sort the results by., since: str(date-time) # Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint GET /orgs/{org}/members\n@desc List organization members\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {filter: str(2fa_disabled/all)=all # Filter members returned in the list. `2fa_disabled` means that only members without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled will be returned. This options is only available for organization owners., role: str(all/admin/member)=all # Filter members returned by their role., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /orgs/{org}/members/{username}\n@desc Check organization membership for a user\n@required {org: str # The organization name. The name is not case sensitive., username: str # The handle for the GitHub user account.}\n@returns(204) Response if requester is an organization member and user is a member\n@errors {302: Response if requester is not an organization member, 404: Not Found if requester is an organization member and user is not a member}\n\n@endpoint DELETE /orgs/{org}/members/{username}\n@desc Remove an organization member\n@required {org: str # The organization name. The name is not case sensitive., username: str # The handle for the GitHub user account.}\n@returns(204) Response\n@errors {403: Forbidden}\n\n@endpoint GET /orgs/{org}/memberships/{username}\n@desc Get organization membership for a user\n@required {org: str # The organization name. The name is not case sensitive., username: str # The handle for the GitHub user account.}\n@returns(200) {url: str(uri), state: str, role: str, organization_url: str(uri), organization: map{login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?}, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, permissions: map{can_create_repository: bool}} # Response\n@errors {403: Forbidden, 404: Resource not found}\n\n@endpoint PUT /orgs/{org}/memberships/{username}\n@desc Set organization membership for a user\n@required {org: str # The organization name. The name is not case sensitive., username: str # The handle for the GitHub user account.}\n@optional {role: str(admin/member)=member # The role to give the user in the organization. Can be one of:    * `admin` - The user will become an owner of the organization.    * `member` - The user will become a non-owner member of the organization.}\n@returns(200) {url: str(uri), state: str, role: str, organization_url: str(uri), organization: map{login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?}, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, permissions: map{can_create_repository: bool}} # Response\n@errors {403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"role\":\"member\"}\n\n@endpoint DELETE /orgs/{org}/memberships/{username}\n@desc Remove organization membership for a user\n@required {org: str # The organization name. The name is not case sensitive., username: str # The handle for the GitHub user account.}\n@returns(204) Response\n@errors {403: Forbidden, 404: Resource not found}\n\n@endpoint GET /orgs/{org}/migrations\n@desc List organization migrations\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", exclude: [str] # Exclude attributes from the API response to improve performance}\n@returns(200) Response\n\n@endpoint POST /orgs/{org}/migrations\n@desc Start an organization migration\n@required {org: str # The organization name. The name is not case sensitive., repositories: [str] # A list of arrays indicating which repositories should be migrated.}\n@optional {lock_repositories: bool=false # Indicates whether repositories should be locked (to prevent manipulation) while migrating data., exclude_metadata: bool=false # Indicates whether metadata should be excluded and only git source should be included for the migration., exclude_git_data: bool=false # Indicates whether the repository git data should be excluded from the migration., exclude_attachments: bool=false # Indicates whether attachments should be excluded from the migration (to reduce migration archive file size)., exclude_releases: bool=false # Indicates whether releases should be excluded from the migration (to reduce migration archive file size)., exclude_owner_projects: bool=false # Indicates whether projects owned by the organization or users should be excluded. from the migration., org_metadata_only: bool=false # Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags)., exclude: [str] # Exclude related items from being returned in the response in order to improve performance of the request.}\n@returns(201) {id: int, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, guid: str, state: str, lock_repositories: bool, exclude_metadata: bool, exclude_git_data: bool, exclude_attachments: bool, exclude_releases: bool, exclude_owner_projects: bool, org_metadata_only: bool, repositories: [map], url: str(uri), created_at: str(date-time), updated_at: str(date-time), node_id: str, archive_url: str(uri), exclude: [str]} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"repositories\":[\"github/Hello-World\"],\"lock_repositories\":true}\n\n@endpoint GET /orgs/{org}/migrations/{migration_id}\n@desc Get an organization migration status\n@required {org: str # The organization name. The name is not case sensitive., migration_id: int # The unique identifier of the migration.}\n@optional {exclude: [str] # Exclude attributes from the API response to improve performance}\n@returns(200) {id: int, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, guid: str, state: str, lock_repositories: bool, exclude_metadata: bool, exclude_git_data: bool, exclude_attachments: bool, exclude_releases: bool, exclude_owner_projects: bool, org_metadata_only: bool, repositories: [map], url: str(uri), created_at: str(date-time), updated_at: str(date-time), node_id: str, archive_url: str(uri), exclude: [str]} # *   `pending`, which means the migration hasn't started yet. *   `exporting`, which means the migration is in progress. *   `exported`, which means the migration finished successfully. *   `failed`, which means the migration failed.\n@errors {404: Resource not found}\n\n@endpoint GET /orgs/{org}/migrations/{migration_id}/archive\n@desc Download an organization migration archive\n@required {org: str # The organization name. The name is not case sensitive., migration_id: int # The unique identifier of the migration.}\n@errors {302: Response, 404: Resource not found}\n\n@endpoint DELETE /orgs/{org}/migrations/{migration_id}/archive\n@desc Delete an organization migration archive\n@required {org: str # The organization name. The name is not case sensitive., migration_id: int # The unique identifier of the migration.}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock\n@desc Unlock an organization repository\n@required {org: str # The organization name. The name is not case sensitive., migration_id: int # The unique identifier of the migration., repo_name: str # repo_name parameter}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint GET /orgs/{org}/migrations/{migration_id}/repositories\n@desc List repositories in an organization migration\n@required {org: str # The organization name. The name is not case sensitive., migration_id: int # The unique identifier of the migration.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint GET /orgs/{org}/outside_collaborators\n@desc List outside collaborators for an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {filter: str(2fa_disabled/all)=all # Filter the list of outside collaborators. `2fa_disabled` means that only outside collaborators without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled will be returned., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint PUT /orgs/{org}/outside_collaborators/{username}\n@desc Convert an organization member to outside collaborator\n@required {org: str # The organization name. The name is not case sensitive., username: str # The handle for the GitHub user account.}\n@optional {async: bool=false # When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued.}\n@returns(202) User is getting converted asynchronously\n@returns(204) User was converted\n@errors {403: Forbidden if user is the last owner of the organization, not a member of the organization, or if the enterprise enforces a policy for inviting outside collaborators. For more information, see \"[Enforcing repository management policies in your enterprise](https://docs.github.com/enterprise-server@3.7/admin/policies/enforcing-policies-for-your-enterprise/enforcing-repository-management-policies-in-your-enterprise#enforcing-a-policy-for-inviting-outside-collaborators-to-repositories).\", 404: Resource not found}\n@example_request {\"async\":true}\n\n@endpoint DELETE /orgs/{org}/outside_collaborators/{username}\n@desc Remove outside collaborator from an organization\n@required {org: str # The organization name. The name is not case sensitive., username: str # The handle for the GitHub user account.}\n@returns(204) Response\n@errors {422: Unprocessable Entity if user is a member of the organization}\n\n@endpoint GET /orgs/{org}/pre-receive-hooks\n@desc List pre-receive hooks for an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", direction: str(asc/desc)=desc # The direction to sort the results by., sort: str(created/updated/name)=created # The sort order for the response collection.}\n@returns(200) Response\n\n@endpoint GET /orgs/{org}/pre-receive-hooks/{pre_receive_hook_id}\n@desc Get a pre-receive hook for an organization\n@required {org: str # The organization name. The name is not case sensitive., pre_receive_hook_id: int # The unique identifier of the pre-receive hook.}\n@returns(200) {id: int, name: str, enforcement: str, configuration_url: str, allow_downstream_configuration: bool} # Response\n\n@endpoint PATCH /orgs/{org}/pre-receive-hooks/{pre_receive_hook_id}\n@desc Update pre-receive hook enforcement for an organization\n@required {org: str # The organization name. The name is not case sensitive., pre_receive_hook_id: int # The unique identifier of the pre-receive hook.}\n@optional {enforcement: str # The state of enforcement for the hook on this repository., allow_downstream_configuration: bool # Whether repositories can override enforcement.}\n@returns(200) {id: int, name: str, enforcement: str, configuration_url: str, allow_downstream_configuration: bool} # Response\n@example_request {\"enforcement\":\"enabled\",\"allow_downstream_configuration\":false}\n\n@endpoint DELETE /orgs/{org}/pre-receive-hooks/{pre_receive_hook_id}\n@desc Remove pre-receive hook enforcement for an organization\n@required {org: str # The organization name. The name is not case sensitive., pre_receive_hook_id: int # The unique identifier of the pre-receive hook.}\n@returns(200) {id: int, name: str, enforcement: str, configuration_url: str, allow_downstream_configuration: bool} # Response\n\n@endpoint GET /orgs/{org}/projects\n@desc List organization projects\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {state: str(open/closed/all)=open # Indicates the state of the projects to return., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint POST /orgs/{org}/projects\n@desc Create an organization project\n@required {org: str # The organization name. The name is not case sensitive., name: str # The name of the project.}\n@optional {body: str # The description of the project.}\n@returns(201) {owner_url: str(uri), url: str(uri), html_url: str(uri), columns_url: str(uri), id: int, node_id: str, name: str, body: str?, number: int, state: str, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), organization_permission: str, private: bool} # Response\n@errors {401: Requires authentication, 403: Forbidden, 404: Resource not found, 410: Gone, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"name\":\"Organization Roadmap\",\"body\":\"High-level roadmap for the upcoming year.\"}\n\n@endpoint GET /orgs/{org}/public_members\n@desc List public organization members\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /orgs/{org}/public_members/{username}\n@desc Check public organization membership for a user\n@required {org: str # The organization name. The name is not case sensitive., username: str # The handle for the GitHub user account.}\n@returns(204) Response if user is a public member\n@errors {404: Not Found if user is not a public member}\n\n@endpoint PUT /orgs/{org}/public_members/{username}\n@desc Set public organization membership for the authenticated user\n@required {org: str # The organization name. The name is not case sensitive., username: str # The handle for the GitHub user account.}\n@returns(204) Response\n@errors {403: Forbidden}\n\n@endpoint DELETE /orgs/{org}/public_members/{username}\n@desc Remove public organization membership for the authenticated user\n@required {org: str # The organization name. The name is not case sensitive., username: str # The handle for the GitHub user account.}\n@returns(204) Response\n\n@endpoint GET /orgs/{org}/repos\n@desc List organization repositories\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {type: str(all/public/private/forks/sources/member/internal) # Specifies the types of repositories you want returned. `internal` is not yet supported when a GitHub App calls this endpoint with an installation access token., sort: str(created/updated/pushed/full_name)=created # The property to sort the results by., direction: str(asc/desc) # The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint POST /orgs/{org}/repos\n@desc Create an organization repository\n@required {org: str # The organization name. The name is not case sensitive., name: str # The name of the repository.}\n@optional {description: str # A short description of the repository., homepage: str # A URL with more information about the repository., private: bool=false # Whether the repository is private., visibility: str(public/private/internal) # The visibility of the repository. **Note**: For GitHub Enterprise Server, this endpoint will only list repositories available to all users on the enterprise. For more information, see \"[Creating an internal repository](https://docs.github.com/enterprise-server@3.7/github/creating-cloning-and-archiving-repositories/about-repository-visibility#about-internal-repositories)\" in the GitHub Help documentation.   The `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header., has_issues: bool=true # Either `true` to enable issues for this repository or `false` to disable them., has_projects: bool=true # Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error., has_wiki: bool=true # Either `true` to enable the wiki for this repository or `false` to disable it., has_downloads: bool=true # Whether downloads are enabled., is_template: bool=false # Either `true` to make this repo available as a template repository or `false` to prevent it., team_id: int # The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization., auto_init: bool=false # Pass `true` to create an initial commit with empty README., gitignore_template: str # Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, \"Haskell\"., license_template: str # Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/enterprise-server@3.7/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, \"mit\" or \"mpl-2.0\"., allow_squash_merge: bool=true # Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging., allow_merge_commit: bool=true # Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits., allow_rebase_merge: bool=true # Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging., allow_auto_merge: bool=false # Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge., delete_branch_on_merge: bool=false # Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**, use_squash_pr_title_as_default: bool=false # Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead., squash_merge_commit_title: str(PR_TITLE/COMMIT_OR_PR_TITLE) # The default value for a squash merge commit title:  - `PR_TITLE` - default to the pull request's title. - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)., squash_merge_commit_message: str(PR_BODY/COMMIT_MESSAGES/BLANK) # The default value for a squash merge commit message:  - `PR_BODY` - default to the pull request's body. - `COMMIT_MESSAGES` - default to the branch's commit messages. - `BLANK` - default to a blank commit message., merge_commit_title: str(PR_TITLE/MERGE_MESSAGE) # The default value for a merge commit title.  - `PR_TITLE` - default to the pull request's title. - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)., merge_commit_message: str(PR_BODY/PR_TITLE/BLANK) # The default value for a merge commit message.  - `PR_TITLE` - default to the pull request's title. - `PR_BODY` - default to the pull request's body. - `BLANK` - default to a blank commit message.}\n@returns(201) {id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time), created_at: str(date-time), updated_at: str(date-time), permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, temp_clone_token: str?, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_merge_commit: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, parent: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, source: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, forks: int, master_branch: str, open_issues: int, watchers: int, anonymous_access_enabled: bool, code_of_conduct: map{url: str(uri), key: str, name: str, html_url: str(uri)?}, security_and_analysis: map?{advanced_security: map{status: str}, secret_scanning: map{status: str}, secret_scanning_push_protection: map{status: str}}} # Response\n@errors {403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"name\":\"Hello-World\",\"description\":\"This is your first repository\",\"homepage\":\"https://github.com\",\"private\":false,\"has_issues\":true,\"has_projects\":true,\"has_wiki\":true}\n\n@endpoint GET /orgs/{org}/secret-scanning/alerts\n@desc List secret scanning alerts for an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {state: str(open/resolved) # Set to `open` or `resolved` to only list secret scanning alerts in a specific state., secret_type: str # A comma-separated list of secret types to return. By default all secret types are returned. See \"[Secret scanning patterns](https://docs.github.com/enterprise-server@3.7/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)\" for a complete list of secret types., resolution: str # A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`., sort: str(created/updated)=created # The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved., direction: str(asc/desc)=desc # The direction to sort the results by., page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", before: str # A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.7/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty \"before\" query string., after: str # A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.7/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events after this cursor.  To receive an initial cursor on your first request, include an empty \"after\" query string.}\n@returns(200) Response\n@errors {404: Resource not found, 503: Service unavailable}\n\n@endpoint GET /orgs/{org}/security-managers\n@desc List security manager teams\n@required {org: str # The organization name. The name is not case sensitive.}\n@returns(200) Response\n\n@endpoint PUT /orgs/{org}/security-managers/teams/{team_slug}\n@desc Add a security manager team\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name.}\n@returns(204) Response\n@errors {409: The organization has reached the maximum number of security manager teams.}\n\n@endpoint DELETE /orgs/{org}/security-managers/teams/{team_slug}\n@desc Remove a security manager team\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name.}\n@returns(204) Response\n\n@endpoint GET /orgs/{org}/settings/billing/advanced-security\n@desc Get GitHub Advanced Security active committers for an organization\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_advanced_security_committers: int, total_count: int, repositories: [map]} # Success\n@errors {403: Response if GitHub Advanced Security is not enabled for this repository}\n\n@endpoint GET /orgs/{org}/teams\n@desc List teams\n@required {org: str # The organization name. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {403: Forbidden}\n\n@endpoint POST /orgs/{org}/teams\n@desc Create a team\n@required {org: str # The organization name. The name is not case sensitive., name: str # The name of the team.}\n@optional {description: str # The description of the team., maintainers: [str] # List GitHub IDs for organization members who will become team maintainers., repo_names: [str] # The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to., privacy: str(secret/closed) # The level of privacy this team should have. The options are:   **For a non-nested team:**    * `secret` - only visible to organization owners and members of this team.    * `closed` - visible to all members of this organization.   Default: `secret`   **For a parent or child team:**    * `closed` - visible to all members of this organization.   Default for child team: `closed`, permission: str(pull/push)=pull # **Deprecated**. The permission that new repositories will be added to the team with when none is specified., parent_team_id: int # The ID of a team to set as the parent team., ldap_dn: str # The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. LDAP synchronization must be enabled to map LDAP entries to a team. Use the \"[Update LDAP mapping for a team](https://docs.github.com/enterprise-server@3.7/rest/enterprise-admin/ldap#update-ldap-mapping-for-a-team)\" endpoint to change the LDAP DN. For more information, see \"[Using LDAP](https://docs.github.com/enterprise-server@3.7/admin/identity-and-access-management/authenticating-users-for-your-github-enterprise-server-instance/using-ldap#enabling-ldap-sync).\"}\n@returns(201) {id: int, node_id: str, url: str(uri), html_url: str(uri), name: str, slug: str, description: str?, privacy: str, permission: str, members_url: str, repositories_url: str(uri), parent: map?{id: int, node_id: str, url: str(uri), members_url: str, name: str, description: str?, permission: str, privacy: str, html_url: str(uri), repositories_url: str(uri), slug: str, ldap_dn: str}, members_count: int, repos_count: int, created_at: str(date-time), updated_at: str(date-time), organization: map{login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?, name: str, company: str, blog: str(uri), location: str, email: str(email), twitter_username: str?, is_verified: bool, has_organization_projects: bool, has_repository_projects: bool, public_repos: int, public_gists: int, followers: int, following: int, html_url: str(uri), created_at: str(date-time), type: str, total_private_repos: int, owned_private_repos: int, private_gists: int?, disk_usage: int?, collaborators: int?, billing_email: str(email)?, plan: map{name: str, space: int, private_repos: int, filled_seats: int, seats: int}, default_repository_permission: str?, members_can_create_repositories: bool?, two_factor_requirement_enabled: bool?, members_allowed_repository_creation_type: str, members_can_create_public_repositories: bool, members_can_create_private_repositories: bool, members_can_create_internal_repositories: bool, members_can_create_pages: bool, members_can_create_public_pages: bool, members_can_create_private_pages: bool, members_can_fork_private_repositories: bool?, web_commit_signoff_required: bool, updated_at: str(date-time)}, ldap_dn: str} # Response\n@errors {403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"name\":\"Justice League\",\"description\":\"A great team\",\"permission\":\"push\",\"privacy\":\"closed\"}\n\n@endpoint GET /orgs/{org}/teams/{team_slug}\n@desc Get a team by name\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name.}\n@returns(200) {id: int, node_id: str, url: str(uri), html_url: str(uri), name: str, slug: str, description: str?, privacy: str, permission: str, members_url: str, repositories_url: str(uri), parent: map?{id: int, node_id: str, url: str(uri), members_url: str, name: str, description: str?, permission: str, privacy: str, html_url: str(uri), repositories_url: str(uri), slug: str, ldap_dn: str}, members_count: int, repos_count: int, created_at: str(date-time), updated_at: str(date-time), organization: map{login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?, name: str, company: str, blog: str(uri), location: str, email: str(email), twitter_username: str?, is_verified: bool, has_organization_projects: bool, has_repository_projects: bool, public_repos: int, public_gists: int, followers: int, following: int, html_url: str(uri), created_at: str(date-time), type: str, total_private_repos: int, owned_private_repos: int, private_gists: int?, disk_usage: int?, collaborators: int?, billing_email: str(email)?, plan: map{name: str, space: int, private_repos: int, filled_seats: int, seats: int}, default_repository_permission: str?, members_can_create_repositories: bool?, two_factor_requirement_enabled: bool?, members_allowed_repository_creation_type: str, members_can_create_public_repositories: bool, members_can_create_private_repositories: bool, members_can_create_internal_repositories: bool, members_can_create_pages: bool, members_can_create_public_pages: bool, members_can_create_private_pages: bool, members_can_fork_private_repositories: bool?, web_commit_signoff_required: bool, updated_at: str(date-time)}, ldap_dn: str} # Response\n@errors {404: Resource not found}\n\n@endpoint PATCH /orgs/{org}/teams/{team_slug}\n@desc Update a team\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name.}\n@optional {name: str # The name of the team., description: str # The description of the team., privacy: str(secret/closed) # The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are:   **For a non-nested team:**    * `secret` - only visible to organization owners and members of this team.    * `closed` - visible to all members of this organization.   **For a parent or child team:**    * `closed` - visible to all members of this organization., permission: str(pull/push/admin)=pull # **Deprecated**. The permission that new repositories will be added to the team with when none is specified., parent_team_id: int # The ID of a team to set as the parent team.}\n@returns(200) {id: int, node_id: str, url: str(uri), html_url: str(uri), name: str, slug: str, description: str?, privacy: str, permission: str, members_url: str, repositories_url: str(uri), parent: map?{id: int, node_id: str, url: str(uri), members_url: str, name: str, description: str?, permission: str, privacy: str, html_url: str(uri), repositories_url: str(uri), slug: str, ldap_dn: str}, members_count: int, repos_count: int, created_at: str(date-time), updated_at: str(date-time), organization: map{login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?, name: str, company: str, blog: str(uri), location: str, email: str(email), twitter_username: str?, is_verified: bool, has_organization_projects: bool, has_repository_projects: bool, public_repos: int, public_gists: int, followers: int, following: int, html_url: str(uri), created_at: str(date-time), type: str, total_private_repos: int, owned_private_repos: int, private_gists: int?, disk_usage: int?, collaborators: int?, billing_email: str(email)?, plan: map{name: str, space: int, private_repos: int, filled_seats: int, seats: int}, default_repository_permission: str?, members_can_create_repositories: bool?, two_factor_requirement_enabled: bool?, members_allowed_repository_creation_type: str, members_can_create_public_repositories: bool, members_can_create_private_repositories: bool, members_can_create_internal_repositories: bool, members_can_create_pages: bool, members_can_create_public_pages: bool, members_can_create_private_pages: bool, members_can_fork_private_repositories: bool?, web_commit_signoff_required: bool, updated_at: str(date-time)}, ldap_dn: str} # Response when the updated information already exists\n@returns(201) {id: int, node_id: str, url: str(uri), html_url: str(uri), name: str, slug: str, description: str?, privacy: str, permission: str, members_url: str, repositories_url: str(uri), parent: map?{id: int, node_id: str, url: str(uri), members_url: str, name: str, description: str?, permission: str, privacy: str, html_url: str(uri), repositories_url: str(uri), slug: str, ldap_dn: str}, members_count: int, repos_count: int, created_at: str(date-time), updated_at: str(date-time), organization: map{login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?, name: str, company: str, blog: str(uri), location: str, email: str(email), twitter_username: str?, is_verified: bool, has_organization_projects: bool, has_repository_projects: bool, public_repos: int, public_gists: int, followers: int, following: int, html_url: str(uri), created_at: str(date-time), type: str, total_private_repos: int, owned_private_repos: int, private_gists: int?, disk_usage: int?, collaborators: int?, billing_email: str(email)?, plan: map{name: str, space: int, private_repos: int, filled_seats: int, seats: int}, default_repository_permission: str?, members_can_create_repositories: bool?, two_factor_requirement_enabled: bool?, members_allowed_repository_creation_type: str, members_can_create_public_repositories: bool, members_can_create_private_repositories: bool, members_can_create_internal_repositories: bool, members_can_create_pages: bool, members_can_create_public_pages: bool, members_can_create_private_pages: bool, members_can_fork_private_repositories: bool?, web_commit_signoff_required: bool, updated_at: str(date-time)}, ldap_dn: str} # Response\n@errors {403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"name\":\"new team name\",\"description\":\"new team description\",\"privacy\":\"closed\"}\n\n@endpoint DELETE /orgs/{org}/teams/{team_slug}\n@desc Delete a team\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name.}\n@returns(204) Response\n\n@endpoint GET /orgs/{org}/teams/{team_slug}/discussions\n@desc List discussions\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name.}\n@optional {direction: str(asc/desc)=desc # The direction to sort the results by., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", pinned: str # Pinned discussions only filter}\n@returns(200) Response\n\n@endpoint POST /orgs/{org}/teams/{team_slug}/discussions\n@desc Create a discussion\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., title: str # The discussion post's title., body: str # The discussion post's body text.}\n@optional {private: bool=false # Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.}\n@returns(201) {author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, body_html: str, body_version: str, comments_count: int, comments_url: str(uri), created_at: str(date-time), last_edited_at: str(date-time)?, html_url: str(uri), node_id: str, number: int, pinned: bool, private: bool, team_url: str(uri), title: str, updated_at: str(date-time), url: str(uri), reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@example_request {\"title\":\"Our first team post\",\"body\":\"Hi! This is an area for us to collaborate as a team.\"}\n\n@endpoint GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\n@desc Get a discussion\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., discussion_number: int # The number that identifies the discussion.}\n@returns(200) {author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, body_html: str, body_version: str, comments_count: int, comments_url: str(uri), created_at: str(date-time), last_edited_at: str(date-time)?, html_url: str(uri), node_id: str, number: int, pinned: bool, private: bool, team_url: str(uri), title: str, updated_at: str(date-time), url: str(uri), reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n\n@endpoint PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\n@desc Update a discussion\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., discussion_number: int # The number that identifies the discussion.}\n@optional {title: str # The discussion post's title., body: str # The discussion post's body text.}\n@returns(200) {author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, body_html: str, body_version: str, comments_count: int, comments_url: str(uri), created_at: str(date-time), last_edited_at: str(date-time)?, html_url: str(uri), node_id: str, number: int, pinned: bool, private: bool, team_url: str(uri), title: str, updated_at: str(date-time), url: str(uri), reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@example_request {\"title\":\"Welcome to our first team post\"}\n\n@endpoint DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\n@desc Delete a discussion\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., discussion_number: int # The number that identifies the discussion.}\n@returns(204) Response\n\n@endpoint GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments\n@desc List discussion comments\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., discussion_number: int # The number that identifies the discussion.}\n@optional {direction: str(asc/desc)=desc # The direction to sort the results by., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments\n@desc Create a discussion comment\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., discussion_number: int # The number that identifies the discussion., body: str # The discussion comment's body text.}\n@returns(201) {author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, body_html: str, body_version: str, created_at: str(date-time), last_edited_at: str(date-time)?, discussion_url: str(uri), html_url: str(uri), node_id: str, number: int, updated_at: str(date-time), url: str(uri), reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@example_request {\"body\":\"Do you like apples?\"}\n\n@endpoint GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}\n@desc Get a discussion comment\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., discussion_number: int # The number that identifies the discussion., comment_number: int # The number that identifies the comment.}\n@returns(200) {author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, body_html: str, body_version: str, created_at: str(date-time), last_edited_at: str(date-time)?, discussion_url: str(uri), html_url: str(uri), node_id: str, number: int, updated_at: str(date-time), url: str(uri), reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n\n@endpoint PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}\n@desc Update a discussion comment\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., discussion_number: int # The number that identifies the discussion., comment_number: int # The number that identifies the comment., body: str # The discussion comment's body text.}\n@returns(200) {author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, body_html: str, body_version: str, created_at: str(date-time), last_edited_at: str(date-time)?, discussion_url: str(uri), html_url: str(uri), node_id: str, number: int, updated_at: str(date-time), url: str(uri), reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@example_request {\"body\":\"Do you like pineapples?\"}\n\n@endpoint DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}\n@desc Delete a discussion comment\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., discussion_number: int # The number that identifies the discussion., comment_number: int # The number that identifies the comment.}\n@returns(204) Response\n\n@endpoint GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions\n@desc List reactions for a team discussion comment\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., discussion_number: int # The number that identifies the discussion., comment_number: int # The number that identifies the comment.}\n@optional {content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # Returns a single [reaction type](https://docs.github.com/enterprise-server@3.7/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion comment., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions\n@desc Create reaction for a team discussion comment\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., discussion_number: int # The number that identifies the discussion., comment_number: int # The number that identifies the comment., content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # The [reaction type](https://docs.github.com/enterprise-server@3.7/rest/reactions/reactions#about-reactions) to add to the team discussion comment.}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Response when the reaction type has already been added to this team discussion comment\n@returns(201) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Response\n@example_request {\"content\":\"heart\"}\n\n@endpoint DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}\n@desc Delete team discussion comment reaction\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., discussion_number: int # The number that identifies the discussion., comment_number: int # The number that identifies the comment., reaction_id: int # The unique identifier of the reaction.}\n@returns(204) Response\n\n@endpoint GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions\n@desc List reactions for a team discussion\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., discussion_number: int # The number that identifies the discussion.}\n@optional {content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # Returns a single [reaction type](https://docs.github.com/enterprise-server@3.7/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions\n@desc Create reaction for a team discussion\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., discussion_number: int # The number that identifies the discussion., content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # The [reaction type](https://docs.github.com/enterprise-server@3.7/rest/reactions/reactions#about-reactions) to add to the team discussion.}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Response\n@returns(201) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Response\n@example_request {\"content\":\"heart\"}\n\n@endpoint DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}\n@desc Delete team discussion reaction\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., discussion_number: int # The number that identifies the discussion., reaction_id: int # The unique identifier of the reaction.}\n@returns(204) Response\n\n@endpoint GET /orgs/{org}/teams/{team_slug}/external-groups\n@desc List a connection between an external group and a team\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name.}\n@returns(200) {groups: [map]} # Response\n\n@endpoint PATCH /orgs/{org}/teams/{team_slug}/external-groups\n@desc Update the connection between an external group and a team\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., group_id: int # External Group Id}\n@returns(200) {group_id: int, group_name: str, updated_at: str, teams: [map], members: [map]} # Response\n@example_request {\"group_id\":123}\n\n@endpoint DELETE /orgs/{org}/teams/{team_slug}/external-groups\n@desc Remove the connection between an external group and a team\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name.}\n@returns(204) Response\n\n@endpoint GET /orgs/{org}/teams/{team_slug}/members\n@desc List team members\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name.}\n@optional {role: str(member/maintainer/all)=all # Filters members returned by their role in the team., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /orgs/{org}/teams/{team_slug}/memberships/{username}\n@desc Get team membership for a user\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., username: str # The handle for the GitHub user account.}\n@returns(200) {url: str(uri), role: str, state: str} # Response\n@errors {404: if user has no team membership}\n\n@endpoint PUT /orgs/{org}/teams/{team_slug}/memberships/{username}\n@desc Add or update team membership for a user\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., username: str # The handle for the GitHub user account.}\n@optional {role: str(member/maintainer)=member # The role that this user should have in the team.}\n@returns(200) {url: str(uri), role: str, state: str} # Response\n@errors {403: Forbidden if team synchronization is set up, 422: Unprocessable Entity if you attempt to add an organization to a team}\n@example_request {\"role\":\"maintainer\"}\n\n@endpoint DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}\n@desc Remove team membership for a user\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., username: str # The handle for the GitHub user account.}\n@returns(204) Response\n@errors {403: Forbidden if team synchronization is set up}\n\n@endpoint GET /orgs/{org}/teams/{team_slug}/projects\n@desc List team projects\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /orgs/{org}/teams/{team_slug}/projects/{project_id}\n@desc Check team permissions for a project\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., project_id: int # The unique identifier of the project.}\n@returns(200) {owner_url: str, url: str, html_url: str, columns_url: str, id: int, node_id: str, name: str, body: str?, number: int, state: str, creator: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str, updated_at: str, organization_permission: str, private: bool, permissions: map{read: bool, write: bool, admin: bool}} # Response\n@errors {404: Not Found if project is not managed by this team}\n\n@endpoint PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}\n@desc Add or update team project permissions\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., project_id: int # The unique identifier of the project.}\n@optional {permission: str(read/write/admin) # The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/enterprise-server@3.7/rest/guides/getting-started-with-the-rest-api#http-method).\"}\n@returns(204) Response\n@errors {403: Forbidden if the project is not owned by the organization}\n@example_request {\"permission\":\"write\"}\n\n@endpoint DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}\n@desc Remove a project from a team\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., project_id: int # The unique identifier of the project.}\n@returns(204) Response\n\n@endpoint GET /orgs/{org}/teams/{team_slug}/repos\n@desc List team repositories\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\n@desc Check team permissions for a repository\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) {id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, role_name: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str} # Alternative response with repository permissions\n@returns(204) Response if team has permission for the repository. This is the response when the repository media type hasn't been provded in the Accept header.\n@errors {404: Not Found if team does not have permission for the repository}\n\n@endpoint PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\n@desc Add or update team repository permissions\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {permission: str=push # The permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.}\n@returns(204) Response\n@example_request {\"permission\":\"push\"}\n\n@endpoint DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\n@desc Remove a repository from a team\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name., owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(204) Response\n\n@endpoint GET /orgs/{org}/teams/{team_slug}/teams\n@desc List child teams\n@required {org: str # The organization name. The name is not case sensitive., team_slug: str # The slug of the team name.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) if child teams exist\n\n@endpoint POST /orgs/{org}/{security_product}/{enablement}\n@desc Enable or disable a security feature for an organization\n@required {org: str # The organization name. The name is not case sensitive., security_product: str(dependency_graph/dependabot_alerts/dependabot_security_updates/advanced_security/secret_scanning/secret_scanning_push_protection) # The security feature to enable or disable., enablement: str(enable_all/disable_all) # The action to take.  `enable_all` means to enable the specified security feature for all repositories in the organization. `disable_all` means to disable the specified security feature for all repositories in the organization.}\n@returns(204) Action started\n@errors {422: The action could not be taken due to an in progress enablement, or a policy is preventing enablement}\n\n@endgroup\n\n@group projects\n@endpoint GET /projects/columns/cards/{card_id}\n@desc Get a project card\n@required {card_id: int # The unique identifier of the card.}\n@returns(200) {url: str(uri), id: int, node_id: str, note: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), archived: bool, column_name: str, project_id: str, column_url: str(uri), content_url: str(uri), project_url: str(uri)} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint PATCH /projects/columns/cards/{card_id}\n@desc Update an existing project card\n@required {card_id: int # The unique identifier of the card.}\n@optional {note: str # The project card's note, archived: bool # Whether or not the card is archived}\n@returns(200) {url: str(uri), id: int, node_id: str, note: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), archived: bool, column_name: str, project_id: str, column_url: str(uri), content_url: str(uri), project_url: str(uri)} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"note\":\"Add payload for delete Project column\"}\n\n@endpoint DELETE /projects/columns/cards/{card_id}\n@desc Delete a project card\n@required {card_id: int # The unique identifier of the card.}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint POST /projects/columns/cards/{card_id}/moves\n@desc Move a project card\n@required {card_id: int # The unique identifier of the card., position: str # The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card.}\n@optional {column_id: int # The unique identifier of the column the card should be moved to}\n@returns(201) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 422: Validation failed, or the endpoint has been spammed., 503: Response}\n@example_request {\"column_id\":42,\"position\":\"bottom\"}\n\n@endpoint GET /projects/columns/{column_id}\n@desc Get a project column\n@required {column_id: int # The unique identifier of the column.}\n@returns(200) {url: str(uri), project_url: str(uri), cards_url: str(uri), id: int, node_id: str, name: str, created_at: str(date-time), updated_at: str(date-time)} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint PATCH /projects/columns/{column_id}\n@desc Update an existing project column\n@required {column_id: int # The unique identifier of the column., name: str # Name of the project column}\n@returns(200) {url: str(uri), project_url: str(uri), cards_url: str(uri), id: int, node_id: str, name: str, created_at: str(date-time), updated_at: str(date-time)} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n@example_request {\"name\":\"To Do\"}\n\n@endpoint DELETE /projects/columns/{column_id}\n@desc Delete a project column\n@required {column_id: int # The unique identifier of the column.}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint GET /projects/columns/{column_id}/cards\n@desc List project cards\n@required {column_id: int # The unique identifier of the column.}\n@optional {archived_state: str(all/archived/not_archived)=not_archived # Filters the project cards that are returned by the card's state., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint POST /projects/columns/{column_id}/cards\n@desc Create a project card\n@required {column_id: int # The unique identifier of the column.}\n@returns(201) {url: str(uri), id: int, node_id: str, note: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), archived: bool, column_name: str, project_id: str, column_url: str(uri), content_url: str(uri), project_url: str(uri)} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 422: Validation failed, 503: Response}\n@example_request {\"note\":\"Add payload for delete Project column\"}\n\n@endpoint POST /projects/columns/{column_id}/moves\n@desc Move a project column\n@required {column_id: int # The unique identifier of the column., position: str # The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column.}\n@returns(201) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"position\":\"last\"}\n\n@endpoint GET /projects/{project_id}\n@desc Get a project\n@required {project_id: int # The unique identifier of the project.}\n@returns(200) {owner_url: str(uri), url: str(uri), html_url: str(uri), columns_url: str(uri), id: int, node_id: str, name: str, body: str?, number: int, state: str, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), organization_permission: str, private: bool} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint PATCH /projects/{project_id}\n@desc Update a project\n@required {project_id: int # The unique identifier of the project.}\n@optional {name: str # Name of the project, body: str # Body of the project, state: str # State of the project; either 'open' or 'closed', organization_permission: str(read/write/admin/none) # The baseline permission that all organization members have on this project, private: bool # Whether or not this project can be seen by everyone.}\n@returns(200) {owner_url: str(uri), url: str(uri), html_url: str(uri), columns_url: str(uri), id: int, node_id: str, name: str, body: str?, number: int, state: str, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), organization_permission: str, private: bool} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Not Found if the authenticated user does not have access to the project, 410: Gone, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"name\":\"Week One Sprint\",\"state\":\"open\",\"organization_permission\":\"write\"}\n\n@endpoint DELETE /projects/{project_id}\n@desc Delete a project\n@required {project_id: int # The unique identifier of the project.}\n@returns(204) Delete Success\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 410: Gone}\n\n@endpoint GET /projects/{project_id}/collaborators\n@desc List project collaborators\n@required {project_id: int # The unique identifier of the project.}\n@optional {affiliation: str(outside/direct/all)=all # Filters the collaborators by their affiliation. `outside` means outside collaborators of a project that are not a member of the project's organization. `direct` means collaborators with permissions to a project, regardless of organization membership status. `all` means all collaborators the authenticated user can see., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint PUT /projects/{project_id}/collaborators/{username}\n@desc Add project collaborator\n@required {project_id: int # The unique identifier of the project., username: str # The handle for the GitHub user account.}\n@optional {permission: str(read/write/admin)=write # The permission to grant the collaborator.}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"permission\":\"write\"}\n\n@endpoint DELETE /projects/{project_id}/collaborators/{username}\n@desc Remove user as a collaborator\n@required {project_id: int # The unique identifier of the project., username: str # The handle for the GitHub user account.}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /projects/{project_id}/collaborators/{username}/permission\n@desc Get project permission for a user\n@required {project_id: int # The unique identifier of the project., username: str # The handle for the GitHub user account.}\n@returns(200) {permission: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /projects/{project_id}/columns\n@desc List project columns\n@required {project_id: int # The unique identifier of the project.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint POST /projects/{project_id}/columns\n@desc Create a project column\n@required {project_id: int # The unique identifier of the project., name: str # Name of the project column}\n@returns(201) {url: str(uri), project_url: str(uri), cards_url: str(uri), id: int, node_id: str, name: str, created_at: str(date-time), updated_at: str(date-time)} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"name\":\"Remaining tasks\"}\n\n@endgroup\n\n@group rate_limit\n@endpoint GET /rate_limit\n@desc Get rate limit status for the authenticated user\n@returns(200) {resources: map{core: map{limit: int, remaining: int, reset: int, used: int}, graphql: map{limit: int, remaining: int, reset: int, used: int}, search: map{limit: int, remaining: int, reset: int, used: int}, code_search: map{limit: int, remaining: int, reset: int, used: int}, source_import: map{limit: int, remaining: int, reset: int, used: int}, integration_manifest: map{limit: int, remaining: int, reset: int, used: int}, code_scanning_upload: map{limit: int, remaining: int, reset: int, used: int}, actions_runner_registration: map{limit: int, remaining: int, reset: int, used: int}, scim: map{limit: int, remaining: int, reset: int, used: int}}, rate: map{limit: int, remaining: int, reset: int, used: int}} # Response\n@errors {304: Not modified, 404: Resource not found}\n\n@endgroup\n\n@group repos\n@endpoint GET /repos/{owner}/{repo}\n@desc Get a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) {id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time), created_at: str(date-time), updated_at: str(date-time), permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, temp_clone_token: str?, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_merge_commit: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, parent: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, source: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, forks: int, master_branch: str, open_issues: int, watchers: int, anonymous_access_enabled: bool, code_of_conduct: map{url: str(uri), key: str, name: str, html_url: str(uri)?}, security_and_analysis: map?{advanced_security: map{status: str}, secret_scanning: map{status: str}, secret_scanning_push_protection: map{status: str}}} # Response\n@errors {301: Moved permanently, 403: Forbidden, 404: Resource not found}\n\n@endpoint PATCH /repos/{owner}/{repo}\n@desc Update a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {name: str # The name of the repository., description: str # A short description of the repository., homepage: str # A URL with more information about the repository., private: bool=false # Either `true` to make the repository private or `false` to make it public. Default: `false`.   **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/enterprise-server@3.7/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private., visibility: str(public/private/internal) # The visibility of the repository., security_and_analysis: map{advanced_security: map, secret_scanning: map, secret_scanning_push_protection: map} # Specify which security and analysis features to enable or disable for the repository.  To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"[Managing security managers in your organization](https://docs.github.com/enterprise-server@3.7/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization).\"  For example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request: `{ \"security_and_analysis\": {\"advanced_security\": { \"status\": \"enabled\" } } }`.  You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request., has_issues: bool=true # Either `true` to enable issues for this repository or `false` to disable them., has_projects: bool=true # Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error., has_wiki: bool=true # Either `true` to enable the wiki for this repository or `false` to disable it., is_template: bool=false # Either `true` to make this repo available as a template repository or `false` to prevent it., default_branch: str # Updates the default branch for this repository., allow_squash_merge: bool=true # Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging., allow_merge_commit: bool=true # Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits., allow_rebase_merge: bool=true # Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging., delete_branch_on_merge: bool=false # Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion., allow_update_branch: bool=false # Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise., squash_merge_commit_message: str(PR_BODY/COMMIT_MESSAGES/BLANK) # The default value for a squash merge commit message:  - `PR_BODY` - default to the pull request's body. - `COMMIT_MESSAGES` - default to the branch's commit messages. - `BLANK` - default to a blank commit message., merge_commit_title: str(PR_TITLE/MERGE_MESSAGE) # The default value for a merge commit title.  - `PR_TITLE` - default to the pull request's title. - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)., merge_commit_message: str(PR_BODY/PR_TITLE/BLANK) # The default value for a merge commit message.  - `PR_TITLE` - default to the pull request's title. - `PR_BODY` - default to the pull request's body. - `BLANK` - default to a blank commit message., archived: bool=false # Whether to archive this repository. **Note**: You cannot unarchive repositories through the API., allow_forking: bool=false # Either `true` to allow private forks, or `false` to prevent private forks., web_commit_signoff_required: bool=false # Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits.}\n@returns(200) {id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time), created_at: str(date-time), updated_at: str(date-time), permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, temp_clone_token: str?, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_merge_commit: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, parent: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, source: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, forks: int, master_branch: str, open_issues: int, watchers: int, anonymous_access_enabled: bool, code_of_conduct: map{url: str(uri), key: str, name: str, html_url: str(uri)?}, security_and_analysis: map?{advanced_security: map{status: str}, secret_scanning: map{status: str}, secret_scanning_push_protection: map{status: str}}} # Response\n@errors {307: Temporary Redirect, 403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"name\":\"Hello-World\",\"description\":\"This is your first repository\",\"homepage\":\"https://github.com\",\"private\":true,\"has_issues\":true,\"has_projects\":true,\"has_wiki\":true}\n\n@endpoint DELETE /repos/{owner}/{repo}\n@desc Delete a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(204) Response\n@errors {307: Temporary Redirect, 403: If an organization owner has configured the organization to prevent members from deleting organization-owned repositories, a member will get this response:, 404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/actions/artifacts\n@desc List artifacts for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, artifacts: [map]} # Response\n\n@endpoint GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}\n@desc Get an artifact\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., artifact_id: int # The unique identifier of the artifact.}\n@returns(200) {id: int, node_id: str, name: str, size_in_bytes: int, url: str, archive_download_url: str, expired: bool, created_at: str(date-time)?, expires_at: str(date-time)?, updated_at: str(date-time)?, workflow_run: map?{id: int, repository_id: int, head_repository_id: int, head_branch: str, head_sha: str}} # Response\n\n@endpoint DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}\n@desc Delete an artifact\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., artifact_id: int # The unique identifier of the artifact.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}\n@desc Download an artifact\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., artifact_id: int # The unique identifier of the artifact., archive_format: str}\n@errors {302: Response, 410: Gone}\n\n@endpoint GET /repos/{owner}/{repo}/actions/cache/usage\n@desc Get GitHub Actions cache usage for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) {full_name: str, active_caches_size_in_bytes: int, active_caches_count: int} # Response\n\n@endpoint GET /repos/{owner}/{repo}/actions/cache/usage-policy\n@desc Get GitHub Actions cache usage policy for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) {repo_cache_size_limit_in_gb: int} # Response\n\n@endpoint PATCH /repos/{owner}/{repo}/actions/cache/usage-policy\n@desc Set GitHub Actions cache usage policy for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., repo_cache_size_limit_in_gb: int # The size limit for the sum of all caches, in gigabytes.}\n@returns(204) Response\n@example_request {\"repo_cache_size_limit_in_gb\":14}\n\n@endpoint GET /repos/{owner}/{repo}/actions/caches\n@desc List GitHub Actions caches for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", ref: str # The full Git reference for narrowing down the cache. The `ref` for a branch should be formatted as `refs/heads/`. To reference a pull request use `refs/pull//merge`., key: str # An explicit key or prefix for identifying the cache, sort: str(created_at/last_accessed_at/size_in_bytes)=last_accessed_at # The property to sort the results by. `created_at` means when the cache was created. `last_accessed_at` means when the cache was last accessed. `size_in_bytes` is the size of the cache in bytes., direction: str(asc/desc)=desc # The direction to sort the results by.}\n@returns(200) {total_count: int, actions_caches: [map]} # Response\n\n@endpoint DELETE /repos/{owner}/{repo}/actions/caches\n@desc Delete GitHub Actions caches for a repository (using a cache key)\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., key: str # A key for identifying the cache.}\n@optional {ref: str # The full Git reference for narrowing down the cache. The `ref` for a branch should be formatted as `refs/heads/`. To reference a pull request use `refs/pull//merge`.}\n@returns(200) {total_count: int, actions_caches: [map]} # Response\n\n@endpoint DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}\n@desc Delete a GitHub Actions cache for a repository (using a cache ID)\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., cache_id: int # The unique identifier of the GitHub Actions cache.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/actions/jobs/{job_id}\n@desc Get a job for a workflow run\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., job_id: int # The unique identifier of the job.}\n@returns(200) {id: int, run_id: int, run_url: str, run_attempt: int, node_id: str, head_sha: str, url: str, html_url: str?, status: str, conclusion: str?, started_at: str(date-time), completed_at: str(date-time)?, name: str, steps: [map], check_run_url: str, labels: [str], runner_id: int?, runner_name: str?, runner_group_id: int?, runner_group_name: str?} # Response\n\n@endpoint GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs\n@desc Download job logs for a workflow run\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., job_id: int # The unique identifier of the job.}\n@errors {302: Response}\n\n@endpoint POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun\n@desc Re-run a job from a workflow run\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., job_id: int # The unique identifier of the job.}\n@optional {enable_debug_logging: bool=false # Whether to enable debug logging for the re-run.}\n@returns(201) Response\n@errors {403: Forbidden}\n\n@endpoint GET /repos/{owner}/{repo}/actions/oidc/customization/sub\n@desc Get the customization template for an OIDC subject claim for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) {use_default: bool, include_claim_keys: [str]} # Status response\n@errors {400: Bad Request, 404: Resource not found}\n\n@endpoint PUT /repos/{owner}/{repo}/actions/oidc/customization/sub\n@desc Set the customization template for an OIDC subject claim for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., use_default: bool # Whether to use the default template or not.}\n@returns(201) Empty response\n@errors {400: Bad Request, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"use_default\":true}\n\n@endpoint GET /repos/{owner}/{repo}/actions/permissions\n@desc Get GitHub Actions permissions for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) {enabled: bool, allowed_actions: str, selected_actions_url: str} # Response\n\n@endpoint PUT /repos/{owner}/{repo}/actions/permissions\n@desc Set GitHub Actions permissions for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., enabled: bool # Whether GitHub Actions is enabled on the repository.}\n@optional {allowed_actions: str(all/local_only/selected) # The permissions policy that controls the actions that are allowed to run.}\n@returns(204) Response\n@example_request {\"enabled\":true,\"allowed_actions\":\"selected\"}\n\n@endpoint GET /repos/{owner}/{repo}/actions/permissions/access\n@desc Get the level of access for workflows outside of the repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) {access_level: str} # Response\n\n@endpoint PUT /repos/{owner}/{repo}/actions/permissions/access\n@desc Set the level of access for workflows outside of the repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., access_level: str(none/organization/enterprise) # Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the repository.  `none` means the access is only possible from workflows in this repository. `organization` level access allows sharing across the organization. `enterprise` level access allows sharing across the enterprise.}\n@returns(204) Response\n@example_request {\"access_level\":\"organization\"}\n\n@endpoint GET /repos/{owner}/{repo}/actions/permissions/selected-actions\n@desc Get allowed actions for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) {github_owned_allowed: bool, patterns_allowed: [str]} # Response\n\n@endpoint PUT /repos/{owner}/{repo}/actions/permissions/selected-actions\n@desc Set allowed actions for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., github_owned_allowed: bool # Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization., patterns_allowed: [str] # Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.}\n@returns(204) Response\n@example_request {\"github_owned_allowed\":true,\"verified_allowed\":false,\"patterns_allowed\":[\"monalisa/octocat@*\",\"docker/*\"]}\n\n@endpoint GET /repos/{owner}/{repo}/actions/permissions/workflow\n@desc Get default workflow permissions for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) {default_workflow_permissions: str, can_approve_pull_request_reviews: bool} # Response\n\n@endpoint PUT /repos/{owner}/{repo}/actions/permissions/workflow\n@desc Set default workflow permissions for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {default_workflow_permissions: str(read/write) # The default workflow permissions granted to the GITHUB_TOKEN when running workflows., can_approve_pull_request_reviews: bool # Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.}\n@returns(204) Success response\n@errors {409: Conflict response when changing a setting is prevented by the owning organization or enterprise}\n@example_request {\"default_workflow_permissions\":\"read\",\"can_approve_pull_request_reviews\":true}\n\n@endpoint GET /repos/{owner}/{repo}/actions/runners\n@desc List self-hosted runners for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, runners: [map]} # Response\n\n@endpoint GET /repos/{owner}/{repo}/actions/runners/downloads\n@desc List runner applications for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) Response\n\n@endpoint POST /repos/{owner}/{repo}/actions/runners/registration-token\n@desc Create a registration token for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(201) {token: str, expires_at: str(date-time), permissions: map, repositories: [map], single_file: str?, repository_selection: str} # Response\n\n@endpoint POST /repos/{owner}/{repo}/actions/runners/remove-token\n@desc Create a remove token for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(201) {token: str, expires_at: str(date-time), permissions: map, repositories: [map], single_file: str?, repository_selection: str} # Response\n\n@endpoint GET /repos/{owner}/{repo}/actions/runners/{runner_id}\n@desc Get a self-hosted runner for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., runner_id: int # Unique identifier of the self-hosted runner.}\n@returns(200) {id: int, runner_group_id: int, name: str, os: str, status: str, busy: bool, labels: [map]} # Response\n\n@endpoint DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}\n@desc Delete a self-hosted runner from a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., runner_id: int # Unique identifier of the self-hosted runner.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels\n@desc List labels for a self-hosted runner for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., runner_id: int # Unique identifier of the self-hosted runner.}\n@returns(200) {total_count: int, labels: [map]} # Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels\n@desc Add custom labels to a self-hosted runner for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., runner_id: int # Unique identifier of the self-hosted runner., labels: [str] # The names of the custom labels to add to the runner.}\n@returns(200) {total_count: int, labels: [map]} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"labels\":[\"gpu\",\"accelerated\"]}\n\n@endpoint PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels\n@desc Set custom labels for a self-hosted runner for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., runner_id: int # Unique identifier of the self-hosted runner., labels: [str] # The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.}\n@returns(200) {total_count: int, labels: [map]} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"labels\":[\"gpu\",\"accelerated\"]}\n\n@endpoint DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels\n@desc Remove all custom labels from a self-hosted runner for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., runner_id: int # Unique identifier of the self-hosted runner.}\n@returns(200) {total_count: int, labels: [map]} # Response\n@errors {404: Resource not found}\n\n@endpoint DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}\n@desc Remove a custom label from a self-hosted runner for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., runner_id: int # Unique identifier of the self-hosted runner., name: str # The name of a self-hosted runner's custom label.}\n@returns(200) {total_count: int, labels: [map]} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /repos/{owner}/{repo}/actions/runs\n@desc List workflow runs for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {actor: str # Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run., branch: str # Returns workflow runs associated with a branch. Use the name of the branch of the `push`., event: str # Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see \"[Events that trigger workflows](https://docs.github.com/enterprise-server@3.7/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows).\", status: str(completed/action_required/cancelled/failure/neutral/skipped/stale/success/timed_out/in_progress/queued/requested/waiting/pending) # Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", created: str(date-time) # Returns workflow runs created within the given date-time range. For more information on the syntax, see \"[Understanding the search syntax](https://docs.github.com/enterprise-server@3.7/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates).\", exclude_pull_requests: bool=false # If `true` pull requests are omitted from the response (empty array)., check_suite_id: int # Returns workflow runs with the `check_suite_id` that you specify., head_sha: str # Only returns workflow runs that are associated with the specified `head_sha`.}\n@returns(200) {total_count: int, workflow_runs: [map]} # Response\n\n@endpoint GET /repos/{owner}/{repo}/actions/runs/{run_id}\n@desc Get a workflow run\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., run_id: int # The unique identifier of the workflow run.}\n@optional {exclude_pull_requests: bool=false # If `true` pull requests are omitted from the response (empty array).}\n@returns(200) {id: int, name: str?, node_id: str, check_suite_id: int, check_suite_node_id: str, head_branch: str?, head_sha: str, path: str, run_number: int, run_attempt: int, referenced_workflows: [map]?, event: str, status: str?, conclusion: str?, workflow_id: int, url: str, html_url: str, pull_requests: [map]?, created_at: str(date-time), updated_at: str(date-time), actor: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, triggering_actor: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, run_started_at: str(date-time), jobs_url: str, logs_url: str, check_suite_url: str, artifacts_url: str, cancel_url: str, rerun_url: str, previous_attempt_url: str?, workflow_url: str, head_commit: map?{id: str, tree_id: str, message: str, timestamp: str(date-time), author: map?{name: str, email: str(email)}, committer: map?{name: str, email: str(email)}}, repository: map{id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, role_name: str, temp_clone_token: str, delete_branch_on_merge: bool, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, web_commit_signoff_required: bool}, head_repository: map{id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, role_name: str, temp_clone_token: str, delete_branch_on_merge: bool, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, web_commit_signoff_required: bool}, head_repository_id: int} # Response\n\n@endpoint DELETE /repos/{owner}/{repo}/actions/runs/{run_id}\n@desc Delete a workflow run\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., run_id: int # The unique identifier of the workflow run.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals\n@desc Get the review history for a workflow run\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., run_id: int # The unique identifier of the workflow run.}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts\n@desc List workflow run artifacts\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., run_id: int # The unique identifier of the workflow run.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", name: str # The name field of an artifact. When specified, only artifacts with this name will be returned.}\n@returns(200) {total_count: int, artifacts: [map]} # Response\n\n@endpoint GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}\n@desc Get a workflow run attempt\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., run_id: int # The unique identifier of the workflow run., attempt_number: int # The attempt number of the workflow run.}\n@optional {exclude_pull_requests: bool=false # If `true` pull requests are omitted from the response (empty array).}\n@returns(200) {id: int, name: str?, node_id: str, check_suite_id: int, check_suite_node_id: str, head_branch: str?, head_sha: str, path: str, run_number: int, run_attempt: int, referenced_workflows: [map]?, event: str, status: str?, conclusion: str?, workflow_id: int, url: str, html_url: str, pull_requests: [map]?, created_at: str(date-time), updated_at: str(date-time), actor: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, triggering_actor: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, run_started_at: str(date-time), jobs_url: str, logs_url: str, check_suite_url: str, artifacts_url: str, cancel_url: str, rerun_url: str, previous_attempt_url: str?, workflow_url: str, head_commit: map?{id: str, tree_id: str, message: str, timestamp: str(date-time), author: map?{name: str, email: str(email)}, committer: map?{name: str, email: str(email)}}, repository: map{id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, role_name: str, temp_clone_token: str, delete_branch_on_merge: bool, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, web_commit_signoff_required: bool}, head_repository: map{id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, role_name: str, temp_clone_token: str, delete_branch_on_merge: bool, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, web_commit_signoff_required: bool}, head_repository_id: int} # Response\n\n@endpoint GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs\n@desc List jobs for a workflow run attempt\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., run_id: int # The unique identifier of the workflow run., attempt_number: int # The attempt number of the workflow run.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, jobs: [map]} # Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs\n@desc Download workflow run attempt logs\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., run_id: int # The unique identifier of the workflow run., attempt_number: int # The attempt number of the workflow run.}\n@errors {302: Response}\n\n@endpoint POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel\n@desc Cancel a workflow run\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., run_id: int # The unique identifier of the workflow run.}\n@returns(202) Response\n@errors {409: Conflict}\n\n@endpoint GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs\n@desc List jobs for a workflow run\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., run_id: int # The unique identifier of the workflow run.}\n@optional {filter: str(latest/all)=latest # Filters jobs by their `completed_at` timestamp. `latest` returns jobs from the most recent execution of the workflow run. `all` returns all jobs for a workflow run, including from old executions of the workflow run., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, jobs: [map]} # Response\n\n@endpoint GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs\n@desc Download workflow run logs\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., run_id: int # The unique identifier of the workflow run.}\n@errors {302: Response}\n\n@endpoint DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs\n@desc Delete workflow run logs\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., run_id: int # The unique identifier of the workflow run.}\n@returns(204) Response\n@errors {403: Forbidden, 500: Internal Error}\n\n@endpoint GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments\n@desc Get pending deployments for a workflow run\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., run_id: int # The unique identifier of the workflow run.}\n@returns(200) Response\n\n@endpoint POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments\n@desc Review pending deployments for a workflow run\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., run_id: int # The unique identifier of the workflow run., environment_ids: [int] # The list of environment ids to approve or reject, state: str(approved/rejected) # Whether to approve or reject deployment to the specified environments., comment: str # A comment to accompany the deployment review}\n@returns(200) Response\n@example_request {\"environment_ids\":[161171787],\"state\":\"approved\",\"comment\":\"Ship it!\"}\n\n@endpoint POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun\n@desc Re-run a workflow\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., run_id: int # The unique identifier of the workflow run.}\n@optional {enable_debug_logging: bool=false # Whether to enable debug logging for the re-run.}\n@returns(201) Response\n\n@endpoint POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs\n@desc Re-run failed jobs from a workflow run\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., run_id: int # The unique identifier of the workflow run.}\n@optional {enable_debug_logging: bool=false # Whether to enable debug logging for the re-run.}\n@returns(201) Response\n\n@endpoint GET /repos/{owner}/{repo}/actions/secrets\n@desc List repository secrets\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, secrets: [map]} # Response\n\n@endpoint GET /repos/{owner}/{repo}/actions/secrets/public-key\n@desc Get a repository public key\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) {key_id: str, key: str, id: int, url: str, title: str, created_at: str} # Response\n\n@endpoint GET /repos/{owner}/{repo}/actions/secrets/{secret_name}\n@desc Get a repository secret\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., secret_name: str # The name of the secret.}\n@returns(200) {name: str, created_at: str(date-time), updated_at: str(date-time)} # Response\n\n@endpoint PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}\n@desc Create or update a repository secret\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., secret_name: str # The name of the secret.}\n@optional {encrypted_value: str # Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-server@3.7/rest/actions/secrets#get-a-repository-public-key) endpoint., key_id: str # ID of the key you used to encrypt the secret.}\n@returns(201) Response when creating a secret\n@returns(204) Response when updating a secret\n@example_request {\"encrypted_value\":\"c2VjcmV0\",\"key_id\":\"012345678912345678\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}\n@desc Delete a repository secret\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., secret_name: str # The name of the secret.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/actions/workflows\n@desc List repository workflows\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, workflows: [map]} # Response\n\n@endpoint GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}\n@desc Get a workflow\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., workflow_id: any # The ID of the workflow. You can also pass the workflow file name as a string.}\n@returns(200) {id: int, node_id: str, name: str, path: str, state: str, created_at: str(date-time), updated_at: str(date-time), url: str, html_url: str, badge_url: str, deleted_at: str(date-time)} # Response\n\n@endpoint PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable\n@desc Disable a workflow\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., workflow_id: any # The ID of the workflow. You can also pass the workflow file name as a string.}\n@returns(204) Response\n\n@endpoint POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches\n@desc Create a workflow dispatch event\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., workflow_id: any # The ID of the workflow. You can also pass the workflow file name as a string., ref: str # The git reference for the workflow. The reference can be a branch or tag name.}\n@optional {inputs: map # Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted.}\n@returns(204) Response\n@example_request {\"ref\":\"topic-branch\",\"inputs\":{\"name\":\"Mona the Octocat\",\"home\":\"San Francisco, CA\"}}\n\n@endpoint PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable\n@desc Enable a workflow\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., workflow_id: any # The ID of the workflow. You can also pass the workflow file name as a string.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs\n@desc List workflow runs for a workflow\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., workflow_id: any # The ID of the workflow. You can also pass the workflow file name as a string.}\n@optional {actor: str # Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run., branch: str # Returns workflow runs associated with a branch. Use the name of the branch of the `push`., event: str # Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see \"[Events that trigger workflows](https://docs.github.com/enterprise-server@3.7/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows).\", status: str(completed/action_required/cancelled/failure/neutral/skipped/stale/success/timed_out/in_progress/queued/requested/waiting/pending) # Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", created: str(date-time) # Returns workflow runs created within the given date-time range. For more information on the syntax, see \"[Understanding the search syntax](https://docs.github.com/enterprise-server@3.7/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates).\", exclude_pull_requests: bool=false # If `true` pull requests are omitted from the response (empty array)., check_suite_id: int # Returns workflow runs with the `check_suite_id` that you specify., head_sha: str # Only returns workflow runs that are associated with the specified `head_sha`.}\n@returns(200) {total_count: int, workflow_runs: [map]} # Response\n\n@endpoint GET /repos/{owner}/{repo}/assignees\n@desc List assignees\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/assignees/{assignee}\n@desc Check if a user can be assigned\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., assignee: str}\n@returns(204) If the `assignee` can be assigned to issues in the repository, a `204` header with no content is returned.\n@errors {404: Otherwise a `404` status code is returned.}\n\n@endpoint GET /repos/{owner}/{repo}/autolinks\n@desc List all autolinks of a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint POST /repos/{owner}/{repo}/autolinks\n@desc Create an autolink reference for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., key_prefix: str # This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit., url_template: str # The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`.}\n@optional {is_alphanumeric: bool=true # Whether this autolink reference matches alphanumeric characters. If true, the `` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters.}\n@returns(201) {id: int, key_prefix: str, url_template: str, is_alphanumeric: bool} # response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"key_prefix\":\"TICKET-\",\"url_template\":\"https://example.com/TICKET?query=<num>\",\"is_alphanumeric\":true}\n\n@endpoint GET /repos/{owner}/{repo}/autolinks/{autolink_id}\n@desc Get an autolink reference of a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., autolink_id: int # The unique identifier of the autolink.}\n@returns(200) {id: int, key_prefix: str, url_template: str, is_alphanumeric: bool} # Response\n@errors {404: Resource not found}\n\n@endpoint DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}\n@desc Delete an autolink reference from a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., autolink_id: int # The unique identifier of the autolink.}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/branches\n@desc List branches\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {protected: bool # Setting to `true` returns only protected branches. When set to `false`, only unprotected branches are returned. Omitting this parameter returns all branches., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}\n@desc Get a branch\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) {name: str, commit: map{url: str(uri), sha: str, node_id: str, html_url: str(uri), comments_url: str(uri), commit: map{url: str(uri), author: map?{name: str, email: str, date: str}, committer: map?{name: str, email: str, date: str}, message: str, comment_count: int, tree: map{sha: str, url: str(uri)}, verification: map{verified: bool, reason: str, payload: str?, signature: str?}}, author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, committer: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, parents: [map], stats: map{additions: int, deletions: int, total: int}, files: [map]}, _links: map{html: str, self: str(uri)}, protected: bool, protection: map{url: str, enabled: bool, required_status_checks: map{url: str, enforcement_level: str, contexts: [str], checks: [map], contexts_url: str, strict: bool}, enforce_admins: map{url: str(uri), enabled: bool}, required_pull_request_reviews: map{url: str(uri), dismissal_restrictions: map{users: [map], teams: [map], apps: [map], url: str, users_url: str, teams_url: str}, bypass_pull_request_allowances: map{users: [map], teams: [map], apps: [map]}, dismiss_stale_reviews: bool, require_code_owner_reviews: bool, required_approving_review_count: int}, restrictions: map{url: str(uri), users_url: str(uri), teams_url: str(uri), apps_url: str(uri), users: [map], teams: [map], apps: [map]}, required_linear_history: map{enabled: bool}, allow_force_pushes: map{enabled: bool}, allow_deletions: map{enabled: bool}, block_creations: map{enabled: bool}, required_conversation_resolution: map{enabled: bool}, name: str, protection_url: str, required_signatures: map{url: str(uri), enabled: bool}}, protection_url: str(uri), pattern: str, required_approving_review_count: int} # Response\n@errors {301: Moved permanently, 404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}/protection\n@desc Get branch protection\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) {url: str, enabled: bool, required_status_checks: map{url: str, enforcement_level: str, contexts: [str], checks: [map], contexts_url: str, strict: bool}, enforce_admins: map{url: str(uri), enabled: bool}, required_pull_request_reviews: map{url: str(uri), dismissal_restrictions: map{users: [map], teams: [map], apps: [map], url: str, users_url: str, teams_url: str}, bypass_pull_request_allowances: map{users: [map], teams: [map], apps: [map]}, dismiss_stale_reviews: bool, require_code_owner_reviews: bool, required_approving_review_count: int}, restrictions: map{url: str(uri), users_url: str(uri), teams_url: str(uri), apps_url: str(uri), users: [map], teams: [map], apps: [map]}, required_linear_history: map{enabled: bool}, allow_force_pushes: map{enabled: bool}, allow_deletions: map{enabled: bool}, block_creations: map{enabled: bool}, required_conversation_resolution: map{enabled: bool}, name: str, protection_url: str, required_signatures: map{url: str(uri), enabled: bool}} # Response\n@errors {404: Resource not found}\n\n@endpoint PUT /repos/{owner}/{repo}/branches/{branch}/protection\n@desc Update branch protection\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql)., required_status_checks: map{strict!: bool, contexts!: [str], checks: [map]} # Require status checks to pass before merging. Set to `null` to disable., enforce_admins: bool # Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable., required_pull_request_reviews: map{dismissal_restrictions: map, dismiss_stale_reviews: bool, require_code_owner_reviews: bool, required_approving_review_count: int, bypass_pull_request_allowances: map} # Require at least one approving review on a pull request, before merging. Set to `null` to disable., restrictions: map{users!: [str], teams!: [str], apps: [str]} # Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable.}\n@optional {required_linear_history: bool # Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see \"[Requiring a linear commit history](https://docs.github.com/enterprise-server@3.7/github/administering-a-repository/requiring-a-linear-commit-history)\" in the GitHub Help documentation., allow_force_pushes: bool # Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see \"[Enabling force pushes to a protected branch](https://docs.github.com/enterprise-server@3.7/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)\" in the GitHub Help documentation.\", allow_deletions: bool # Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see \"[Enabling force pushes to a protected branch](https://docs.github.com/enterprise-server@3.7/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)\" in the GitHub Help documentation., block_creations: bool # If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`., required_conversation_resolution: bool # Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.}\n@returns(200) {url: str(uri), required_status_checks: map{url: str(uri), strict: bool, contexts: [str], checks: [map], contexts_url: str(uri)}, required_pull_request_reviews: map{url: str(uri), dismiss_stale_reviews: bool, require_code_owner_reviews: bool, required_approving_review_count: int, dismissal_restrictions: map{url: str(uri), users_url: str(uri), teams_url: str(uri), users: [map], teams: [map], apps: [map]}, bypass_pull_request_allowances: map{users: [map], teams: [map], apps: [map]}}, required_signatures: map{url: str(uri), enabled: bool}, enforce_admins: map{url: str(uri), enabled: bool}, required_linear_history: map{enabled: bool}, allow_force_pushes: map{enabled: bool}, allow_deletions: map{enabled: bool}, restrictions: map{url: str(uri), users_url: str(uri), teams_url: str(uri), apps_url: str(uri), users: [map], teams: [map], apps: [map]}, required_conversation_resolution: map{enabled: bool}, block_creations: map{enabled: bool}} # Response\n@errors {403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"required_status_checks\":{\"strict\":true,\"contexts\":[\"continuous-integration/travis-ci\"]},\"enforce_admins\":true,\"required_pull_request_reviews\":{\"dismissal_restrictions\":{\"users\":[\"octocat\"],\"teams\":[\"justice-league\"]},\"dismiss_stale_reviews\":true,\"require_code_owner_reviews\":true,\"required_approving_review_count\":2,\"bypass_pull_request_allowances\":{\"users\":[\"octocat\"],\"teams\":[\"justice-league\"]}},\"restrictions\":{\"users\":[\"octocat\"],\"teams\":[\"justice-league\"],\"apps\":[\"super-ci\"]},\"required_linear_history\":true,\"allow_force_pushes\":true,\"allow_deletions\":true,\"block_creations\":true,\"required_conversation_resolution\":true}\n\n@endpoint DELETE /repos/{owner}/{repo}/branches/{branch}/protection\n@desc Delete branch protection\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(204) Response\n@errors {403: Forbidden}\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\n@desc Get admin branch protection\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) {url: str(uri), enabled: bool} # Response\n\n@endpoint POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\n@desc Set admin branch protection\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) {url: str(uri), enabled: bool} # Response\n\n@endpoint DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\n@desc Delete admin branch protection\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\n@desc Get pull request review protection\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) {url: str(uri), dismissal_restrictions: map{users: [map], teams: [map], apps: [map], url: str, users_url: str, teams_url: str}, bypass_pull_request_allowances: map{users: [map], teams: [map], apps: [map]}, dismiss_stale_reviews: bool, require_code_owner_reviews: bool, required_approving_review_count: int} # Response\n\n@endpoint PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\n@desc Update pull request review protection\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@optional {dismissal_restrictions: map{users: [str], teams: [str], apps: [str]} # Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories., dismiss_stale_reviews: bool # Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit., require_code_owner_reviews: bool # Blocks merging pull requests until [code owners](https://docs.github.com/enterprise-server@3.7/articles/about-code-owners/) have reviewed., required_approving_review_count: int # Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers., bypass_pull_request_allowances: map{users: [str], teams: [str], apps: [str]} # Allow specific users, teams, or apps to bypass pull request requirements.}\n@returns(200) {url: str(uri), dismissal_restrictions: map{users: [map], teams: [map], apps: [map], url: str, users_url: str, teams_url: str}, bypass_pull_request_allowances: map{users: [map], teams: [map], apps: [map]}, dismiss_stale_reviews: bool, require_code_owner_reviews: bool, required_approving_review_count: int} # Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"dismissal_restrictions\":{\"users\":[\"octocat\"],\"teams\":[\"justice-league\"],\"apps\":[\"octoapp\"]},\"bypass_pull_request_allowances\":{\"users\":[\"octocat\"],\"teams\":[\"justice-league\"],\"apps\":[\"octoapp\"]},\"dismiss_stale_reviews\":true,\"require_code_owner_reviews\":true,\"required_approving_review_count\":2}\n\n@endpoint DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\n@desc Delete pull request review protection\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\n@desc Get commit signature protection\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) {url: str(uri), enabled: bool} # Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\n@desc Create commit signature protection\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) {url: str(uri), enabled: bool} # Response\n@errors {404: Resource not found}\n\n@endpoint DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\n@desc Delete commit signature protection\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\n@desc Get status checks protection\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) {url: str(uri), strict: bool, contexts: [str], checks: [map], contexts_url: str(uri)} # Response\n@errors {404: Resource not found}\n\n@endpoint PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\n@desc Update status check protection\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@optional {strict: bool # Require branches to be up to date before merging., contexts: [str] # **Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control., checks: [map{context!: str, app_id: int}] # The list of status checks to require in order to merge into this branch.}\n@returns(200) {url: str(uri), strict: bool, contexts: [str], checks: [map], contexts_url: str(uri)} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"strict\":true,\"contexts\":[\"continuous-integration/travis-ci\"]}\n\n@endpoint DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\n@desc Remove status check protection\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\n@desc Get all status check contexts\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\n@desc Add status check contexts\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) Response\n@errors {403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request [\"continuous-integration/travis-ci\",\"continuous-integration/jenkins\"]\n\n@endpoint PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\n@desc Set status check contexts\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request [\"continuous-integration/travis-ci\"]\n\n@endpoint DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\n@desc Remove status check contexts\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request [\"continuous-integration/jenkins\"]\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions\n@desc Get access restrictions\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) {url: str(uri), users_url: str(uri), teams_url: str(uri), apps_url: str(uri), users: [map], teams: [map], apps: [map]} # Response\n@errors {404: Resource not found}\n\n@endpoint DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions\n@desc Delete access restrictions\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\n@desc Get apps with access to the protected branch\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\n@desc Add app access restrictions\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"apps\":[\"octoapp\"]}\n\n@endpoint PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\n@desc Set app access restrictions\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"apps\":[\"octoapp\"]}\n\n@endpoint DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\n@desc Remove app access restrictions\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"apps\":[\"my-app\"]}\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\n@desc Get teams with access to the protected branch\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\n@desc Add team access restrictions\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request [\"justice-league\"]\n\n@endpoint PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\n@desc Set team access restrictions\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request [\"justice-league\"]\n\n@endpoint DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\n@desc Remove team access restrictions\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request [\"octocats\"]\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\n@desc Get users with access to the protected branch\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\n@desc Add user access restrictions\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"users\":[\"octocat\"]}\n\n@endpoint PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\n@desc Set user access restrictions\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"users\":[\"octocat\"]}\n\n@endpoint DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\n@desc Remove user access restrictions\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql).}\n@returns(200) Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"users\":[\"octocat\"]}\n\n@endpoint POST /repos/{owner}/{repo}/branches/{branch}/rename\n@desc Rename a branch\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-server@3.7/graphql)., new_name: str # The new name of the branch.}\n@returns(201) {name: str, commit: map{url: str(uri), sha: str, node_id: str, html_url: str(uri), comments_url: str(uri), commit: map{url: str(uri), author: map?{name: str, email: str, date: str}, committer: map?{name: str, email: str, date: str}, message: str, comment_count: int, tree: map{sha: str, url: str(uri)}, verification: map{verified: bool, reason: str, payload: str?, signature: str?}}, author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, committer: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, parents: [map], stats: map{additions: int, deletions: int, total: int}, files: [map]}, _links: map{html: str, self: str(uri)}, protected: bool, protection: map{url: str, enabled: bool, required_status_checks: map{url: str, enforcement_level: str, contexts: [str], checks: [map], contexts_url: str, strict: bool}, enforce_admins: map{url: str(uri), enabled: bool}, required_pull_request_reviews: map{url: str(uri), dismissal_restrictions: map{users: [map], teams: [map], apps: [map], url: str, users_url: str, teams_url: str}, bypass_pull_request_allowances: map{users: [map], teams: [map], apps: [map]}, dismiss_stale_reviews: bool, require_code_owner_reviews: bool, required_approving_review_count: int}, restrictions: map{url: str(uri), users_url: str(uri), teams_url: str(uri), apps_url: str(uri), users: [map], teams: [map], apps: [map]}, required_linear_history: map{enabled: bool}, allow_force_pushes: map{enabled: bool}, allow_deletions: map{enabled: bool}, block_creations: map{enabled: bool}, required_conversation_resolution: map{enabled: bool}, name: str, protection_url: str, required_signatures: map{url: str(uri), enabled: bool}}, protection_url: str(uri), pattern: str, required_approving_review_count: int} # Response\n@errors {403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"new_name\":\"my_renamed_branch\"}\n\n@endpoint POST /repos/{owner}/{repo}/check-runs\n@desc Create a check run\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., name: str # The name of the check. For example, \"code-coverage\"., head_sha: str # The SHA of the commit.}\n@optional {details_url: str # The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used., external_id: str # A reference for the run on the integrator's system., status: str(queued/in_progress/completed)=queued # The current status., started_at: str(date-time) # The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., conclusion: str(action_required/cancelled/failure/neutral/success/skipped/stale/timed_out) # **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check.  **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this., completed_at: str(date-time) # The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., output: map{title!: str, summary!: str, text: str, annotations: [map], images: [map]} # Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run., actions: [map{label!: str, description!: str, identifier!: str}] # Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/enterprise-server@3.7/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://docs.github.com/enterprise-server@3.7/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions).\"}\n@returns(201) {id: int, head_sha: str, node_id: str, external_id: str?, url: str, html_url: str?, details_url: str?, status: str, conclusion: str?, started_at: str(date-time)?, completed_at: str(date-time)?, output: map{title: str?, summary: str?, text: str?, annotations_count: int, annotations_url: str(uri)}, name: str, check_suite: map?{id: int}, app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, pull_requests: [map], deployment: map{url: str(uri), id: int, node_id: str, task: str, original_environment: str, environment: str, description: str?, created_at: str(date-time), updated_at: str(date-time), statuses_url: str(uri), repository_url: str(uri), transient_environment: bool, production_environment: bool, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}}} # Response\n@example_request {\"name\":\"mighty_readme\",\"head_sha\":\"ce587453ced02b1526dfb4cb910479d431683101\",\"status\":\"in_progress\",\"external_id\":\"42\",\"started_at\":\"2018-05-04T01:14:52Z\",\"output\":{\"title\":\"Mighty Readme report\",\"summary\":\"\",\"text\":\"\"}}\n\n@endpoint GET /repos/{owner}/{repo}/check-runs/{check_run_id}\n@desc Get a check run\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., check_run_id: int # The unique identifier of the check run.}\n@returns(200) {id: int, head_sha: str, node_id: str, external_id: str?, url: str, html_url: str?, details_url: str?, status: str, conclusion: str?, started_at: str(date-time)?, completed_at: str(date-time)?, output: map{title: str?, summary: str?, text: str?, annotations_count: int, annotations_url: str(uri)}, name: str, check_suite: map?{id: int}, app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, pull_requests: [map], deployment: map{url: str(uri), id: int, node_id: str, task: str, original_environment: str, environment: str, description: str?, created_at: str(date-time), updated_at: str(date-time), statuses_url: str(uri), repository_url: str(uri), transient_environment: bool, production_environment: bool, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}}} # Response\n\n@endpoint PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}\n@desc Update a check run\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., check_run_id: int # The unique identifier of the check run.}\n@optional {name: str # The name of the check. For example, \"code-coverage\"., details_url: str # The URL of the integrator's site that has the full details of the check., external_id: str # A reference for the run on the integrator's system., started_at: str(date-time) # This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., status: str(queued/in_progress/completed) # The current status., conclusion: str(action_required/cancelled/failure/neutral/success/skipped/stale/timed_out) # **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check.  **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this., completed_at: str(date-time) # The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., output: map{title: str, summary!: str, text: str, annotations: [map], images: [map]} # Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run., actions: [map{label!: str, description!: str, identifier!: str}] # Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://docs.github.com/enterprise-server@3.7/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions).\"}\n@returns(200) {id: int, head_sha: str, node_id: str, external_id: str?, url: str, html_url: str?, details_url: str?, status: str, conclusion: str?, started_at: str(date-time)?, completed_at: str(date-time)?, output: map{title: str?, summary: str?, text: str?, annotations_count: int, annotations_url: str(uri)}, name: str, check_suite: map?{id: int}, app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, pull_requests: [map], deployment: map{url: str(uri), id: int, node_id: str, task: str, original_environment: str, environment: str, description: str?, created_at: str(date-time), updated_at: str(date-time), statuses_url: str(uri), repository_url: str(uri), transient_environment: bool, production_environment: bool, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}}} # Response\n@example_request {\"name\":\"mighty_readme\",\"started_at\":\"2018-05-04T01:14:52Z\",\"status\":\"completed\",\"conclusion\":\"success\",\"completed_at\":\"2018-05-04T01:14:52Z\",\"output\":{\"title\":\"Mighty Readme report\",\"summary\":\"There are 0 failures, 2 warnings, and 1 notices.\",\"text\":\"You may have some misspelled words on lines 2 and 4. You also may want to add a section in your README about how to install your app.\",\"annotations\":[{\"path\":\"README.md\",\"annotation_level\":\"warning\",\"title\":\"Spell Checker\",\"message\":\"Check your spelling for 'banaas'.\",\"raw_details\":\"Do you mean 'bananas' or 'banana'?\",\"start_line\":2,\"end_line\":2},{\"path\":\"README.md\",\"annotation_level\":\"warning\",\"title\":\"Spell Checker\",\"message\":\"Check your spelling for 'aples'\",\"raw_details\":\"Do you mean 'apples' or 'Naples'\",\"start_line\":4,\"end_line\":4}],\"images\":[{\"alt\":\"Super bananas\",\"image_url\":\"http://example.com/images/42\"}]}}\n\n@endpoint GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations\n@desc List check run annotations\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., check_run_id: int # The unique identifier of the check run.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest\n@desc Rerequest a check run\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., check_run_id: int # The unique identifier of the check run.}\n@returns(201) Response\n@errors {403: Forbidden if the check run is not rerequestable or doesn't belong to the authenticated GitHub App, 404: Resource not found, 422: Validation error if the check run is not rerequestable}\n\n@endpoint POST /repos/{owner}/{repo}/check-suites\n@desc Create a check suite\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., head_sha: str # The sha of the head commit.}\n@returns(200) {id: int, node_id: str, head_branch: str?, head_sha: str, status: str?, conclusion: str?, url: str?, before: str?, after: str?, pull_requests: [map]?, app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, repository: map{id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, role_name: str, temp_clone_token: str, delete_branch_on_merge: bool, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, web_commit_signoff_required: bool}, created_at: str(date-time)?, updated_at: str(date-time)?, head_commit: map{id: str, tree_id: str, message: str, timestamp: str(date-time), author: map?{name: str, email: str(email)}, committer: map?{name: str, email: str(email)}}, latest_check_runs_count: int, check_runs_url: str, rerequestable: bool, runs_rerequestable: bool} # Response when the suite already exists\n@returns(201) {id: int, node_id: str, head_branch: str?, head_sha: str, status: str?, conclusion: str?, url: str?, before: str?, after: str?, pull_requests: [map]?, app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, repository: map{id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, role_name: str, temp_clone_token: str, delete_branch_on_merge: bool, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, web_commit_signoff_required: bool}, created_at: str(date-time)?, updated_at: str(date-time)?, head_commit: map{id: str, tree_id: str, message: str, timestamp: str(date-time), author: map?{name: str, email: str(email)}, committer: map?{name: str, email: str(email)}}, latest_check_runs_count: int, check_runs_url: str, rerequestable: bool, runs_rerequestable: bool} # Response when the suite was created\n@example_request {\"head_sha\":\"d6fde92930d4715a2b49857d24b940956b26d2d3\"}\n\n@endpoint PATCH /repos/{owner}/{repo}/check-suites/preferences\n@desc Update repository preferences for check suites\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {auto_trigger_checks: [map{app_id!: int, setting!: bool}] # Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default.}\n@returns(200) {preferences: map{auto_trigger_checks: [map]}, repository: map{id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, role_name: str, temp_clone_token: str, delete_branch_on_merge: bool, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, web_commit_signoff_required: bool}} # Response\n@example_request {\"auto_trigger_checks\":[{\"app_id\":4,\"setting\":false}]}\n\n@endpoint GET /repos/{owner}/{repo}/check-suites/{check_suite_id}\n@desc Get a check suite\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., check_suite_id: int # The unique identifier of the check suite.}\n@returns(200) {id: int, node_id: str, head_branch: str?, head_sha: str, status: str?, conclusion: str?, url: str?, before: str?, after: str?, pull_requests: [map]?, app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, repository: map{id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, role_name: str, temp_clone_token: str, delete_branch_on_merge: bool, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, web_commit_signoff_required: bool}, created_at: str(date-time)?, updated_at: str(date-time)?, head_commit: map{id: str, tree_id: str, message: str, timestamp: str(date-time), author: map?{name: str, email: str(email)}, committer: map?{name: str, email: str(email)}}, latest_check_runs_count: int, check_runs_url: str, rerequestable: bool, runs_rerequestable: bool} # Response\n\n@endpoint GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs\n@desc List check runs in a check suite\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., check_suite_id: int # The unique identifier of the check suite.}\n@optional {check_name: str # Returns check runs with the specified `name`., status: str(queued/in_progress/completed) # Returns check runs with the specified `status`., filter: str(latest/all)=latest # Filters check runs by their `completed_at` timestamp. `latest` returns the most recent check runs., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, check_runs: [map]} # Response\n\n@endpoint POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest\n@desc Rerequest a check suite\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., check_suite_id: int # The unique identifier of the check suite.}\n@returns(201) Response\n\n@endpoint GET /repos/{owner}/{repo}/code-scanning/alerts\n@desc List code scanning alerts for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {tool_name: str # The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, but not both., tool_guid: str # The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both., page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", ref: str # The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`., direction: str(asc/desc)=desc # The direction to sort the results by., sort: str(created/updated)=created # The property by which to sort the results., state: str # If specified, only code scanning alerts with this state will be returned.}\n@returns(200) Response\n@errors {304: Not modified, 403: Response if GitHub Advanced Security is not enabled for this repository, 404: Resource not found, 503: Service unavailable}\n\n@endpoint GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}\n@desc Get a code scanning alert\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., alert_number: int # The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation.}\n@returns(200) {number: int, created_at: str(date-time), updated_at: str(date-time), url: str(uri), html_url: str(uri), instances_url: str(uri), state: str, fixed_at: str(date-time)?, dismissed_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, dismissed_at: str(date-time)?, dismissed_reason: str?, dismissed_comment: str?, rule: map{id: str?, name: str, severity: str?, security_severity_level: str?, description: str, full_description: str, tags: [str]?, help: str?, help_uri: str?}, tool: map{name: str, version: str?, guid: str?}, most_recent_instance: map{ref: str, analysis_key: str, environment: str, category: str, state: str, commit_sha: str, message: map{text: str}, location: map{path: str, start_line: int, end_line: int, start_column: int, end_column: int}, html_url: str, classifications: [str]}} # Response\n@errors {304: Not modified, 403: Response if GitHub Advanced Security is not enabled for this repository, 404: Resource not found, 503: Service unavailable}\n\n@endpoint PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}\n@desc Update a code scanning alert\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., alert_number: int # The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation., state: str(open/dismissed) # Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`.}\n@optional {dismissed_reason: str(false positive/won't fix/used in tests) # **Required when the state is dismissed.** The reason for dismissing or closing the alert., dismissed_comment: str # The dismissal comment associated with the dismissal of the alert.}\n@returns(200) {number: int, created_at: str(date-time), updated_at: str(date-time), url: str(uri), html_url: str(uri), instances_url: str(uri), state: str, fixed_at: str(date-time)?, dismissed_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, dismissed_at: str(date-time)?, dismissed_reason: str?, dismissed_comment: str?, rule: map{id: str?, name: str, severity: str?, security_severity_level: str?, description: str, full_description: str, tags: [str]?, help: str?, help_uri: str?}, tool: map{name: str, version: str?, guid: str?}, most_recent_instance: map{ref: str, analysis_key: str, environment: str, category: str, state: str, commit_sha: str, message: map{text: str}, location: map{path: str, start_line: int, end_line: int, start_column: int, end_column: int}, html_url: str, classifications: [str]}} # Response\n@errors {403: Response if the repository is archived or if GitHub Advanced Security is not enabled for this repository, 404: Resource not found, 503: Service unavailable}\n@example_request {\"state\":\"dismissed\",\"dismissed_reason\":\"false positive\",\"dismissed_comment\":\"This alert is not actually correct, because there's a sanitizer included in the library.\"}\n\n@endpoint GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances\n@desc List instances of a code scanning alert\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., alert_number: int # The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation.}\n@optional {page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", ref: str # The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`.}\n@returns(200) Response\n@errors {403: Response if GitHub Advanced Security is not enabled for this repository, 404: Resource not found, 503: Service unavailable}\n\n@endpoint GET /repos/{owner}/{repo}/code-scanning/analyses\n@desc List code scanning analyses for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {tool_name: str # The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, but not both., tool_guid: str # The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both., page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", ref: str # The Git reference for the analyses you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`., sarif_id: str # Filter analyses belonging to the same SARIF upload., direction: str(asc/desc)=desc # The direction to sort the results by., sort: str=created # The property by which to sort the results.}\n@returns(200) Response\n@errors {403: Response if GitHub Advanced Security is not enabled for this repository, 404: Resource not found, 503: Service unavailable}\n\n@endpoint GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}\n@desc Get a code scanning analysis for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., analysis_id: int # The ID of the analysis, as returned from the `GET /repos/{owner}/{repo}/code-scanning/analyses` operation.}\n@returns(200) {ref: str, commit_sha: str, analysis_key: str, environment: str, category: str, error: str, created_at: str(date-time), results_count: int, rules_count: int, id: int, url: str(uri), sarif_id: str, tool: map{name: str, version: str?, guid: str?}, deletable: bool, warning: str} # Response\n@errors {403: Response if GitHub Advanced Security is not enabled for this repository, 404: Resource not found, 503: Service unavailable}\n\n@endpoint DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}\n@desc Delete a code scanning analysis from a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., analysis_id: int # The ID of the analysis, as returned from the `GET /repos/{owner}/{repo}/code-scanning/analyses` operation.}\n@optional {confirm_delete: str # Allow deletion if the specified analysis is the last in a set. If you attempt to delete the final analysis in a set without setting this parameter to `true`, you'll get a 400 response with the message: `Analysis is last of its type and deletion may result in the loss of historical alert data. Please specify confirm_delete.`}\n@returns(200) {next_analysis_url: str(uri)?, confirm_delete_url: str(uri)?} # Response\n@errors {400: Bad Request, 403: Response if the repository is archived or if GitHub Advanced Security is not enabled for this repository, 404: Resource not found, 503: Service unavailable}\n\n@endpoint POST /repos/{owner}/{repo}/code-scanning/sarifs\n@desc Upload an analysis as SARIF data\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., commit_sha: str # The SHA of the commit to which the analysis you are uploading relates., ref: str # The full Git reference, formatted as `refs/heads/`, `refs/tags/`, `refs/pull//merge`, or `refs/pull//head`., sarif: str # A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. For more information, see \"[SARIF support for code scanning](https://docs.github.com/enterprise-server@3.7/code-security/secure-coding/sarif-support-for-code-scanning).\"}\n@optional {checkout_uri: str(uri) # The base directory used in the analysis, as it appears in the SARIF file. This property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository., started_at: str(date-time) # The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., tool_name: str # The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to \"API\". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`.}\n@returns(202) {id: str, url: str(uri)} # Response\n@errors {400: Bad Request if the sarif field is invalid, 403: Response if the repository is archived or if GitHub Advanced Security is not enabled for this repository, 404: Resource not found, 413: Payload Too Large if the sarif field is too large, 503: Service unavailable}\n@example_request {\"commit_sha\":\"4b6472266afd7b471e86085a6659e8c7f2b119da\",\"ref\":\"refs/heads/master\",\"sarif\":\"H4sICMLGdF4AA2V4YW1wbGUuc2FyaWYAvVjdbts2FL7PUxDCijaA/CM7iRNfLkPXYgHSNstumlzQ0pHFVCI1korjFgH2ONtr7Ul2KFmy/mOn6QIkjsjDw0/nfN85NL8dEGL9pNwAImqRObECrWM1H40kXQ2XTAfJIlEgXcE1cD10RTQSVDE10K4aKSqZP1AxuKOIKg1ydJU60jSfSh8Hk6EzHA/vlOCWbfa7B6kYPpj90rlsWCZcmbHP5Bs+4oAWIjQD2SMOeJLh2vIQDnIaQerqXHjw8YIgxohybxAyDsS4cAPKsp03K4RcUs6+Up2D+JXpd8mibKIQN9fM/aMCdbyBujGSSQgVxJtx5qX2d2qUcIweQhEuDQf3GBO6CKHkogx/N3MVCKl/AeVKFuf4y5ubsMGDTj1ep+5I7sgmLIpxtU38hLtmMRGSuCFVyip5eKzs5ydh+LztVL6f2m6oih1BkYiuyQIIJWodxVpERPj4sEiWBNNH8EWT0DMG8EAjzKVHXCrB4FkPu/F64NMk1OeC+2yZSNoBOoR7CC0EzYWGbm+xFDFIzbI011+cLjfZtyJkmMZfumAh02uL3NpV2y+MZ6RAjxibyKrNxxJcVjANSb4eBGwZ1M0KsuyR2poLr5rMl8vaDSeVn6eTWEO2j2xIEcmhwlTKNOi4GMOI8gfuZYkvJ7b4v5Tiumyz7RnHeodFzpS8ASIZCH/AYdWi2z3sG8JtFxJ6fF9yR9CdifBr9Pd6d5V2+zbJKjjCFGGmsHuYFy2ytJq9tUxcLSRSQecppOGKrpUxYfxefMEFK+wOGa4hudQByBVT0L+EKtyACxnRsABhEx1QjVDs1KNI9MbpnhqfE45B6FJvu3hRu5VRU9MhZLmK7fqkKyQSTHNoyMqUFMqXCV3CwAeqEwmVokraK8IuBaGvHjQ0gMYrKjnjyw7uk9uD8tgmsBbFMPnU1bV2ZhkJNkuolUiWys3UPWzs5aaIUz9TBe8zMb+6+nT+6fLy91dlE3xzeDDT4zYszb0bW6NjJd0Rvn2EnLvWLFSdKPpBzInzfRgu8ETyMcH8nIfMnJCeC2PyfTA+UKngcnGH7Hw2hGkVQs5YlIRCtdWZYQ4/73es2JlxkfViOEIhoWJq5Oo6UBBfiKIqFBWhiE3jJGbFwVoxBHTRSuIS67sMeplei24X20shLjG+8gqbKC/bESiNMC+wd5q5id0yeS7CJEqXzmrTWNq3k05l84P6f4/bEmXFJjI0fIt1BGQssUnUDkBYeVhE5TqPnMH3jqogDcP0zKcTgLPTMSzOjhbjuVOmW23l1fYNStulfo6sXlFsGLhbDy5RECPRYGCTgOj2bd4nUQEivEd0H7KKYxqnEhFohuur3a3UPskbH/+Yg0+M5P2MHRJu3ziHh3Z2NCrWt3XF1rWTw8Ne/pfbWYXnDSE0SNZQQt1i18q7te2vOhu7ehWuvVyeu0wbLZi24mhoo6aOOTltzG/lgdVvVoXQq5V+pewkFIzL8fjEcadT55jOjpzFzHuOTtDNrMkJPMVQDd7F09RID72O/UPZ0tmctqZ7kWX6EmSZnDpP8GU67SXM8XE3YSrxbKsx6UReZ4y6n/FVZfJjs9Z7stma75W5yQtkzjk5eSJxk1lv4o7+j8TlhaJ2lsKWZO6lruDPBLib3x5ZN/KGWzZ+pn///evv7OOf4iIBv3oY9L/l1wiJ9p0Tc+F1zZnOE9NxXWEus6IQhr5pMfoqxi8WPsuu0azsns4UC6WzNzHIzbeEx4P/AJ3SefgcFAAA\"}\n\n@endpoint GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}\n@desc Get information about a SARIF upload\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., sarif_id: str # The SARIF ID obtained after uploading.}\n@returns(200) {processing_status: str, analyses_url: str(uri)?, errors: [str]?} # Response\n@errors {403: Response if GitHub Advanced Security is not enabled for this repository, 404: Not Found if the sarif id does not match any upload, 503: Service unavailable}\n\n@endpoint GET /repos/{owner}/{repo}/codeowners/errors\n@desc List CODEOWNERS errors\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {ref: str # A branch, tag or commit name used to determine which version of the CODEOWNERS file to use. Default: the repository's default branch (e.g. `main`)}\n@returns(200) {errors: [map]} # Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/collaborators\n@desc List repository collaborators\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {affiliation: str(outside/direct/all)=all # Filter collaborators returned by their affiliation. `outside` means all outside collaborators of an organization-owned repository. `direct` means all collaborators with permissions to an organization-owned repository, regardless of organization membership status. `all` means all collaborators the authenticated user can see., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/collaborators/{username}\n@desc Check if a user is a repository collaborator\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., username: str # The handle for the GitHub user account.}\n@returns(204) Response if user is a collaborator\n@errors {404: Not Found if user is not a collaborator}\n\n@endpoint PUT /repos/{owner}/{repo}/collaborators/{username}\n@desc Add a repository collaborator\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., username: str # The handle for the GitHub user account.}\n@optional {permission: str=push # The permission to grant the collaborator. **Only valid on organization-owned repositories.**}\n@returns(204) Response when: - an existing collaborator is added as a collaborator - an organization member is added as an individual collaborator - an existing team member (whose team is also a repository collaborator) is added as an individual collaborator\n@errors {403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"permission\":\"triage\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/collaborators/{username}\n@desc Remove a repository collaborator\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., username: str # The handle for the GitHub user account.}\n@returns(204) No Content when collaborator was removed from the repository.\n@errors {403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /repos/{owner}/{repo}/collaborators/{username}/permission\n@desc Get repository permissions for a user\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., username: str # The handle for the GitHub user account.}\n@returns(200) {permission: str, role_name: str, user: map?{login: str, id: int, email: str?, name: str?, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, permissions: map{pull: bool, triage: bool, push: bool, maintain: bool, admin: bool}, role_name: str}} # if user has admin permissions\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/comments\n@desc List commit comments for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/comments/{comment_id}\n@desc Get a commit comment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., comment_id: int # The unique identifier of the comment.}\n@returns(200) {html_url: str(uri), url: str(uri), id: int, node_id: str, body: str, path: str?, position: int?, line: int?, commit_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), author_association: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {404: Resource not found}\n\n@endpoint PATCH /repos/{owner}/{repo}/comments/{comment_id}\n@desc Update a commit comment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., comment_id: int # The unique identifier of the comment., body: str # The contents of the comment}\n@returns(200) {html_url: str(uri), url: str(uri), id: int, node_id: str, body: str, path: str?, position: int?, line: int?, commit_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), author_association: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {404: Resource not found}\n@example_request {\"body\":\"Nice change\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/comments/{comment_id}\n@desc Delete a commit comment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., comment_id: int # The unique identifier of the comment.}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/comments/{comment_id}/reactions\n@desc List reactions for a commit comment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., comment_id: int # The unique identifier of the comment.}\n@optional {content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # Returns a single [reaction type](https://docs.github.com/enterprise-server@3.7/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a commit comment., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/comments/{comment_id}/reactions\n@desc Create reaction for a commit comment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., comment_id: int # The unique identifier of the comment., content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # The [reaction type](https://docs.github.com/enterprise-server@3.7/rest/reactions/reactions#about-reactions) to add to the commit comment.}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Reaction exists\n@returns(201) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Reaction created\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"content\":\"heart\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}\n@desc Delete a commit comment reaction\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., comment_id: int # The unique identifier of the comment., reaction_id: int # The unique identifier of the reaction.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/commits\n@desc List commits\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {sha: str # SHA or branch to start listing commits from. Default: the repository’s default branch (usually `main`)., path: str # Only commits containing this file path will be returned., author: str # GitHub username or email address to use to filter by commit author., committer: str # GitHub username or email address to use to filter by commit committer., since: str(date-time) # Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., until: str(date-time) # Only commits before this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {400: Bad Request, 404: Resource not found, 409: Conflict, 500: Internal Error}\n\n@endpoint GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head\n@desc List branches for HEAD commit\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., commit_sha: str # The SHA of the commit.}\n@returns(200) Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /repos/{owner}/{repo}/commits/{commit_sha}/comments\n@desc List commit comments\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., commit_sha: str # The SHA of the commit.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint POST /repos/{owner}/{repo}/commits/{commit_sha}/comments\n@desc Create a commit comment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., commit_sha: str # The SHA of the commit., body: str # The contents of the comment.}\n@optional {path: str # Relative path of the file to comment on., position: int # Line index in the diff to comment on., line: int # **Deprecated**. Use **position** parameter instead. Line number in the file to comment on.}\n@returns(201) {html_url: str(uri), url: str(uri), id: int, node_id: str, body: str, path: str?, position: int?, line: int?, commit_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), author_association: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"body\":\"Great stuff\",\"path\":\"file1.txt\",\"position\":4,\"line\":1}\n\n@endpoint GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls\n@desc List pull requests associated with a commit\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., commit_sha: str # The SHA of the commit.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/commits/{ref}\n@desc Get a commit\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., ref: str # The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.}\n@optional {page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {url: str(uri), sha: str, node_id: str, html_url: str(uri), comments_url: str(uri), commit: map{url: str(uri), author: map?{name: str, email: str, date: str}, committer: map?{name: str, email: str, date: str}, message: str, comment_count: int, tree: map{sha: str, url: str(uri)}, verification: map{verified: bool, reason: str, payload: str?, signature: str?}}, author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, committer: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, parents: [map], stats: map{additions: int, deletions: int, total: int}, files: [map]} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed., 500: Internal Error, 503: Service unavailable}\n\n@endpoint GET /repos/{owner}/{repo}/commits/{ref}/check-runs\n@desc List check runs for a Git reference\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., ref: str # The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.}\n@optional {check_name: str # Returns check runs with the specified `name`., status: str(queued/in_progress/completed) # Returns check runs with the specified `status`., filter: str(latest/all)=latest # Filters check runs by their `completed_at` timestamp. `latest` returns the most recent check runs., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", app_id: int}\n@returns(200) {total_count: int, check_runs: [map]} # Response\n\n@endpoint GET /repos/{owner}/{repo}/commits/{ref}/check-suites\n@desc List check suites for a Git reference\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., ref: str # The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.}\n@optional {app_id: int # Filters check suites by GitHub App `id`., check_name: str # Returns check runs with the specified `name`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, check_suites: [map]} # Response\n\n@endpoint GET /repos/{owner}/{repo}/commits/{ref}/status\n@desc Get the combined status for a specific reference\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., ref: str # The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {state: str, statuses: [map], sha: str, total_count: int, repository: map{id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, role_name: str, temp_clone_token: str, delete_branch_on_merge: bool, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, web_commit_signoff_required: bool}, commit_url: str(uri), url: str(uri)} # Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/commits/{ref}/statuses\n@desc List commit statuses for a reference\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., ref: str # The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {301: Moved permanently}\n\n@endpoint GET /repos/{owner}/{repo}/compare/{basehead}\n@desc Compare two commits\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., basehead: str # The base branch and head branch to compare. This parameter expects the format `BASE...HEAD`. Both must be branch names in `repo`. To compare with a branch that exists in a different repository in the same network as `repo`, the `basehead` parameter expects the format `USERNAME:BASE...USERNAME:HEAD`.}\n@optional {page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {url: str(uri), html_url: str(uri), permalink_url: str(uri), diff_url: str(uri), patch_url: str(uri), base_commit: map{url: str(uri), sha: str, node_id: str, html_url: str(uri), comments_url: str(uri), commit: map{url: str(uri), author: map?{name: str, email: str, date: str}, committer: map?{name: str, email: str, date: str}, message: str, comment_count: int, tree: map{sha: str, url: str(uri)}, verification: map{verified: bool, reason: str, payload: str?, signature: str?}}, author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, committer: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, parents: [map], stats: map{additions: int, deletions: int, total: int}, files: [map]}, merge_base_commit: map{url: str(uri), sha: str, node_id: str, html_url: str(uri), comments_url: str(uri), commit: map{url: str(uri), author: map?{name: str, email: str, date: str}, committer: map?{name: str, email: str, date: str}, message: str, comment_count: int, tree: map{sha: str, url: str(uri)}, verification: map{verified: bool, reason: str, payload: str?, signature: str?}}, author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, committer: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, parents: [map], stats: map{additions: int, deletions: int, total: int}, files: [map]}, status: str, ahead_by: int, behind_by: int, total_commits: int, commits: [map], files: [map]} # Response\n@errors {404: Resource not found, 500: Internal Error, 503: Service unavailable}\n\n@endpoint GET /repos/{owner}/{repo}/contents/{path}\n@desc Get repository content\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., path: str # path parameter}\n@optional {ref: str # The name of the commit/branch/tag. Default: the repository’s default branch.}\n@returns(200) Response\n@errors {302: Found, 403: Forbidden, 404: Resource not found}\n\n@endpoint PUT /repos/{owner}/{repo}/contents/{path}\n@desc Create or update file contents\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., path: str # path parameter, message: str # The commit message., content: str # The new file content, using Base64 encoding.}\n@optional {sha: str # **Required if you are updating a file**. The blob SHA of the file being replaced., branch: str # The branch name. Default: the repository’s default branch., committer: map{name!: str, email!: str, date: str} # The person that committed the file. Default: the authenticated user., author: map{name!: str, email!: str, date: str} # The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.}\n@returns(200) {content: map?{name: str, path: str, sha: str, size: int, url: str, html_url: str, git_url: str, download_url: str, type: str, _links: map{self: str, git: str, html: str}}, commit: map{sha: str, node_id: str, url: str, html_url: str, author: map{date: str, name: str, email: str}, committer: map{date: str, name: str, email: str}, message: str, tree: map{url: str, sha: str}, parents: [map], verification: map{verified: bool, reason: str, signature: str?, payload: str?}}} # Response\n@returns(201) {content: map?{name: str, path: str, sha: str, size: int, url: str, html_url: str, git_url: str, download_url: str, type: str, _links: map{self: str, git: str, html: str}}, commit: map{sha: str, node_id: str, url: str, html_url: str, author: map{date: str, name: str, email: str}, committer: map{date: str, name: str, email: str}, message: str, tree: map{url: str, sha: str}, parents: [map], verification: map{verified: bool, reason: str, signature: str?, payload: str?}}} # Response\n@errors {404: Resource not found, 409: Conflict, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"message\":\"my commit message\",\"committer\":{\"name\":\"Monalisa Octocat\",\"email\":\"octocat@github.com\"},\"content\":\"bXkgbmV3IGZpbGUgY29udGVudHM=\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/contents/{path}\n@desc Delete a file\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., path: str # path parameter, message: str # The commit message., sha: str # The blob SHA of the file being deleted.}\n@optional {branch: str # The branch name. Default: the repository’s default branch, committer: map{name: str, email: str} # object containing information about the committer., author: map{name: str, email: str} # object containing information about the author.}\n@returns(200) {content: map?{name: str, path: str, sha: str, size: int, url: str, html_url: str, git_url: str, download_url: str, type: str, _links: map{self: str, git: str, html: str}}, commit: map{sha: str, node_id: str, url: str, html_url: str, author: map{date: str, name: str, email: str}, committer: map{date: str, name: str, email: str}, message: str, tree: map{url: str, sha: str}, parents: [map], verification: map{verified: bool, reason: str, signature: str?, payload: str?}}} # Response\n@errors {404: Resource not found, 409: Conflict, 422: Validation failed, or the endpoint has been spammed., 503: Service unavailable}\n@example_request {\"message\":\"my commit message\",\"committer\":{\"name\":\"Monalisa Octocat\",\"email\":\"octocat@github.com\"},\"sha\":\"329688480d39049927147c162b9d2deaf885005f\"}\n\n@endpoint GET /repos/{owner}/{repo}/contributors\n@desc List repository contributors\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {anon: str # Set to `1` or `true` to include anonymous contributors in results., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) If repository contains content\n@returns(204) Response if repository is empty\n@errors {403: Forbidden, 404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/dependabot/secrets\n@desc List repository secrets\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, secrets: [map]} # Response\n\n@endpoint GET /repos/{owner}/{repo}/dependabot/secrets/public-key\n@desc Get a repository public key\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) {key_id: str, key: str} # Response\n\n@endpoint GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}\n@desc Get a repository secret\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., secret_name: str # The name of the secret.}\n@returns(200) {name: str, created_at: str(date-time), updated_at: str(date-time)} # Response\n\n@endpoint PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}\n@desc Create or update a repository secret\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., secret_name: str # The name of the secret.}\n@optional {encrypted_value: str # Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-server@3.7/rest/dependabot/secrets#get-a-repository-public-key) endpoint., key_id: str # ID of the key you used to encrypt the secret.}\n@returns(201) Response when creating a secret\n@returns(204) Response when updating a secret\n@example_request {\"encrypted_value\":\"c2VjcmV0\",\"key_id\":\"012345678912345678\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}\n@desc Delete a repository secret\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., secret_name: str # The name of the secret.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}\n@desc Get a diff of the dependencies between commits\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., basehead: str # The base and head Git revisions to compare. The Git revisions will be resolved to commit SHAs. Named revisions will be resolved to their corresponding HEAD commits, and an appropriate merge base will be determined. This parameter expects the format `{base}...{head}`.}\n@optional {name: str # The full path, relative to the repository root, of the dependency manifest file.}\n@returns(200) Response\n@errors {403: Response if GitHub Advanced Security is not enabled for this repository, 404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/dependency-graph/snapshots\n@desc Create a snapshot of dependencies for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., version: int # The version of the repository snapshot submission., job: map{id!: str, correlator!: str, html_url: str}, sha: str # The commit SHA associated with this dependency snapshot. Maximum length: 40 characters., ref: str # The repository branch that triggered this snapshot., detector: map{name!: str, version!: str, url!: str} # A description of the detector used., scanned: str(date-time) # The time at which the snapshot was scanned.}\n@optional {metadata: map # User-defined metadata to store domain-specific information limited to 8 keys with scalar values., manifests: map # A collection of package manifests, which are a collection of related dependencies declared in a file or representing a logical group of dependencies.}\n@returns(201) {id: int, created_at: str, result: str, message: str} # Response\n@example_request {\"version\":0,\"sha\":\"ce587453ced02b1526dfb4cb910479d431683101\",\"ref\":\"refs/heads/main\",\"job\":{\"correlator\":\"yourworkflowname_youractionname\",\"id\":\"yourrunid\"},\"detector\":{\"name\":\"octo-detector\",\"version\":\"0.0.1\",\"url\":\"https://github.com/octo-org/octo-repo\"},\"scanned\":\"2022-06-14T20:25:00Z\",\"manifests\":{\"package-lock.json\":{\"name\":\"package-lock.json\",\"file\":{\"source_location\":\"src/package-lock.json\"},\"resolved\":{\"@actions/core\":{\"package_url\":\"pkg:/npm/%40actions/core@1.1.9\",\"dependencies\":[\"@actions/http-client\"]},\"@actions/http-client\":{\"package_url\":\"pkg:/npm/%40actions/http-client@1.0.7\",\"dependencies\":[\"tunnel\"]},\"tunnel\":{\"package_url\":\"pkg:/npm/tunnel@0.0.6\"}}}}}\n\n@endpoint GET /repos/{owner}/{repo}/deployments\n@desc List deployments\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {sha: str=none # The SHA recorded at creation time., ref: str=none # The name of the ref. This can be a branch, tag, or SHA., task: str=none # The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`)., environment: str=none # The name of the environment that was deployed to (e.g., `staging` or `production`)., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint POST /repos/{owner}/{repo}/deployments\n@desc Create a deployment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., ref: str # The ref to deploy. This can be a branch, tag, or SHA.}\n@optional {task: str=deploy # Specifies a task to execute (e.g., `deploy` or `deploy:migrations`)., auto_merge: bool=true # Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch., required_contexts: [str] # The [status](https://docs.github.com/enterprise-server@3.7/rest/commits/statuses) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts., payload: any, environment: str=production # Name for the target deployment environment (e.g., `production`, `staging`, `qa`)., description: str= # Short description of the deployment., transient_environment: bool=false # Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`, production_environment: bool # Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.}\n@returns(201) {url: str(uri), id: int, node_id: str, sha: str, ref: str, task: str, payload: any, original_environment: str, environment: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), statuses_url: str(uri), repository_url: str(uri), transient_environment: bool, production_environment: bool, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}} # Response\n@returns(202) {message: str} # Merged branch response\n@errors {409: Conflict when there is a merge conflict or the commit's status checks failed, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"ref\":\"topic-branch\",\"payload\":\"{ \\\"deploy\\\": \\\"migrate\\\" }\",\"description\":\"Deploy request from hubot\"}\n\n@endpoint GET /repos/{owner}/{repo}/deployments/{deployment_id}\n@desc Get a deployment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., deployment_id: int # deployment_id parameter}\n@returns(200) {url: str(uri), id: int, node_id: str, sha: str, ref: str, task: str, payload: any, original_environment: str, environment: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), statuses_url: str(uri), repository_url: str(uri), transient_environment: bool, production_environment: bool, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}} # Response\n@errors {404: Resource not found}\n\n@endpoint DELETE /repos/{owner}/{repo}/deployments/{deployment_id}\n@desc Delete a deployment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., deployment_id: int # deployment_id parameter}\n@returns(204) Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\n@desc List deployment statuses\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., deployment_id: int # deployment_id parameter}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\n@desc Create a deployment status\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., deployment_id: int # deployment_id parameter, state: str(error/failure/inactive/in_progress/queued/pending/success) # The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub.}\n@optional {target_url: str= # The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`., log_url: str= # The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `\"\"`, description: str= # A short description of the status. The maximum description length is 140 characters., environment: str # Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. If not defined, the environment of the previous status on the deployment will be used, if it exists. Otherwise, the environment of the deployment will be used., environment_url: str= # Sets the URL for accessing your environment. Default: `\"\"`, auto_inactive: bool # Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`}\n@returns(201) {url: str(uri), id: int, node_id: str, state: str, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, description: str, environment: str, target_url: str(uri), created_at: str(date-time), updated_at: str(date-time), deployment_url: str(uri), repository_url: str(uri), environment_url: str(uri), log_url: str(uri), performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}} # Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"environment\":\"production\",\"state\":\"success\",\"log_url\":\"https://example.com/deployment/42/output\",\"description\":\"Deployment finished successfully.\"}\n\n@endpoint GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}\n@desc Get a deployment status\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., deployment_id: int # deployment_id parameter, status_id: int}\n@returns(200) {url: str(uri), id: int, node_id: str, state: str, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, description: str, environment: str, target_url: str(uri), created_at: str(date-time), updated_at: str(date-time), deployment_url: str(uri), repository_url: str(uri), environment_url: str(uri), log_url: str(uri), performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}} # Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/dispatches\n@desc Create a repository dispatch event\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., event_type: str # A custom webhook event name. Must be 100 characters or fewer.}\n@optional {client_payload: map # JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10.}\n@returns(204) Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"event_type\":\"on-demand-test\",\"client_payload\":{\"unit\":false,\"integration\":true}}\n\n@endpoint GET /repos/{owner}/{repo}/environments\n@desc List environments\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, environments: [map]} # Response\n\n@endpoint GET /repos/{owner}/{repo}/environments/{environment_name}\n@desc Get an environment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., environment_name: str # The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.}\n@returns(200) {id: int, node_id: str, name: str, url: str, html_url: str, created_at: str(date-time), updated_at: str(date-time), protection_rules: [any], deployment_branch_policy: map?{protected_branches: bool, custom_branch_policies: bool}} # Response\n\n@endpoint PUT /repos/{owner}/{repo}/environments/{environment_name}\n@desc Create or update an environment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., environment_name: str # The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.}\n@optional {wait_timer: int # The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days)., reviewers: [map{type: str, id: int}] # The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed., deployment_branch_policy: map{protected_branches!: bool, custom_branch_policies!: bool} # The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.}\n@returns(200) {id: int, node_id: str, name: str, url: str, html_url: str, created_at: str(date-time), updated_at: str(date-time), protection_rules: [any], deployment_branch_policy: map?{protected_branches: bool, custom_branch_policies: bool}} # Response\n@errors {422: Validation error when the environment name is invalid or when `protected_branches` and `custom_branch_policies` in `deployment_branch_policy` are set to the same value}\n@example_request {\"wait_timer\":30,\"reviewers\":[{\"type\":\"User\",\"id\":1},{\"type\":\"Team\",\"id\":1}],\"deployment_branch_policy\":{\"protected_branches\":false,\"custom_branch_policies\":true}}\n\n@endpoint DELETE /repos/{owner}/{repo}/environments/{environment_name}\n@desc Delete an environment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., environment_name: str # The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.}\n@returns(204) Default response\n\n@endpoint GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies\n@desc List deployment branch policies\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., environment_name: str # The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, branch_policies: [map]} # Response\n\n@endpoint POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies\n@desc Create a deployment branch policy\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., environment_name: str # The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`., name: str # The name pattern that branches or tags must match in order to deploy to the environment.  Wildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`. For more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).}\n@returns(200) {id: int, node_id: str, name: str} # Response\n@errors {303: Response if the same branch name pattern already exists, 404: Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false}\n@example_request {\"name\":\"release/*\"}\n\n@endpoint GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}\n@desc Get a deployment branch policy\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., environment_name: str # The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`., branch_policy_id: int # The unique identifier of the branch policy.}\n@returns(200) {id: int, node_id: str, name: str} # Response\n\n@endpoint PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}\n@desc Update a deployment branch policy\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., environment_name: str # The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`., branch_policy_id: int # The unique identifier of the branch policy., name: str # The name pattern that branches must match in order to deploy to the environment.  Wildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`. For more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).}\n@returns(200) {id: int, node_id: str, name: str} # Response\n@example_request {\"name\":\"release/*\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}\n@desc Delete a deployment branch policy\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., environment_name: str # The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`., branch_policy_id: int # The unique identifier of the branch policy.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/events\n@desc List repository events\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/forks\n@desc List forks\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {sort: str(newest/oldest/stargazers/watchers)=newest # The sort order. `stargazers` will sort by star count., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {400: Bad Request}\n\n@endpoint POST /repos/{owner}/{repo}/forks\n@desc Create a fork\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {organization: str # Optional parameter to specify the organization name if forking into an organization., name: str # When forking from an existing repository, a new name for the fork., default_branch_only: bool # When forking from an existing repository, fork with only the default branch.}\n@returns(202) {id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time), created_at: str(date-time), updated_at: str(date-time), permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, temp_clone_token: str?, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_merge_commit: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, parent: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, source: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, forks: int, master_branch: str, open_issues: int, watchers: int, anonymous_access_enabled: bool, code_of_conduct: map{url: str(uri), key: str, name: str, html_url: str(uri)?}, security_and_analysis: map?{advanced_security: map{status: str}, secret_scanning: map{status: str}, secret_scanning_push_protection: map{status: str}}} # Response\n@errors {400: Bad Request, 403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"organization\":\"octocat\",\"name\":\"Hello-World\",\"default_branch_only\":true}\n\n@endpoint POST /repos/{owner}/{repo}/git/blobs\n@desc Create a blob\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., content: str # The new blob's content.}\n@optional {encoding: str=utf-8 # The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.}\n@returns(201) {url: str, sha: str} # Response\n@errors {403: Forbidden, 404: Resource not found, 409: Conflict, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"content\":\"Content of the blob\",\"encoding\":\"utf-8\"}\n\n@endpoint GET /repos/{owner}/{repo}/git/blobs/{file_sha}\n@desc Get a blob\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., file_sha: str}\n@returns(200) {content: str, encoding: str, url: str(uri), sha: str, size: int?, node_id: str, highlighted_content: str} # Response\n@errors {403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint POST /repos/{owner}/{repo}/git/commits\n@desc Create a commit\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., message: str # The commit message, tree: str # The SHA of the tree object this commit points to}\n@optional {parents: [str] # The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided., author: map{name!: str, email!: str, date: str(date-time)} # Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details., committer: map{name: str, email: str, date: str(date-time)} # Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details., signature: str # The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.}\n@returns(201) {sha: str, node_id: str, url: str(uri), author: map{date: str(date-time), email: str, name: str}, committer: map{date: str(date-time), email: str, name: str}, message: str, tree: map{sha: str, url: str(uri)}, parents: [map], verification: map{verified: bool, reason: str, signature: str?, payload: str?}, html_url: str(uri)} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"message\":\"my commit message\",\"author\":{\"name\":\"Mona Octocat\",\"email\":\"octocat@github.com\",\"date\":\"2008-07-09T16:13:30+12:00\"},\"parents\":[\"7d1b31e74ee336d15cbd21741bc88a537ed063a0\"],\"tree\":\"827efc6d56897b048c772eb4087f854f46256132\",\"signature\":\"-----BEGIN PGP SIGNATURE-----\\n\\niQIzBAABAQAdFiEESn/54jMNIrGSE6Tp6cQjvhfv7nAFAlnT71cACgkQ6cQjvhfv\\n7nCWwA//XVqBKWO0zF+bZl6pggvky3Oc2j1pNFuRWZ29LXpNuD5WUGXGG209B0hI\\nDkmcGk19ZKUTnEUJV2Xd0R7AW01S/YSub7OYcgBkI7qUE13FVHN5ln1KvH2all2n\\n2+JCV1HcJLEoTjqIFZSSu/sMdhkLQ9/NsmMAzpf/iIM0nQOyU4YRex9eD1bYj6nA\\nOQPIDdAuaTQj1gFPHYLzM4zJnCqGdRlg0sOM/zC5apBNzIwlgREatOYQSCfCKV7k\\nnrU34X8b9BzQaUx48Qa+Dmfn5KQ8dl27RNeWAqlkuWyv3pUauH9UeYW+KyuJeMkU\\n+NyHgAsWFaCFl23kCHThbLStMZOYEnGagrd0hnm1TPS4GJkV4wfYMwnI4KuSlHKB\\njHl3Js9vNzEUQipQJbgCgTiWvRJoK3ENwBTMVkKHaqT4x9U4Jk/XZB6Q8MA09ezJ\\n3QgiTjTAGcum9E9QiJqMYdWQPWkaBIRRz5cET6HPB48YNXAAUsfmuYsGrnVLYbG+\\nUpC6I97VybYHTy2O9XSGoaLeMI9CsFn38ycAxxbWagk5mhclNTP5mezIq6wKSwmr\\nX11FW3n1J23fWZn5HJMBsRnUCgzqzX3871IqLYHqRJ/bpZ4h20RhTyPj5c/z7QXp\\neSakNQMfbbMcljkha+ZMuVQX1K9aRlVqbmv3ZMWh+OijLYVU2bc=\\n=5Io4\\n-----END PGP SIGNATURE-----\\n\"}\n\n@endpoint GET /repos/{owner}/{repo}/git/commits/{commit_sha}\n@desc Get a commit object\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., commit_sha: str # The SHA of the commit.}\n@returns(200) {sha: str, node_id: str, url: str(uri), author: map{date: str(date-time), email: str, name: str}, committer: map{date: str(date-time), email: str, name: str}, message: str, tree: map{sha: str, url: str(uri)}, parents: [map], verification: map{verified: bool, reason: str, signature: str?, payload: str?}, html_url: str(uri)} # Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/git/matching-refs/{ref}\n@desc List matching references\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., ref: str # The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/git/ref/{ref}\n@desc Get a reference\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., ref: str # The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.}\n@returns(200) {ref: str, node_id: str, url: str(uri), object: map{type: str, sha: str, url: str(uri)}} # Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/git/refs\n@desc Create a reference\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., ref: str # The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected., sha: str # The SHA1 value for this reference.}\n@returns(201) {ref: str, node_id: str, url: str(uri), object: map{type: str, sha: str, url: str(uri)}} # Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"ref\":\"refs/heads/featureA\",\"sha\":\"aa218f56b14c9653891f9e74264a383fa43fefbd\"}\n\n@endpoint PATCH /repos/{owner}/{repo}/git/refs/{ref}\n@desc Update a reference\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., ref: str # The name of the reference to update (for example, `heads/featureA`). Can be a branch name (`heads/BRANCH_NAME`) or tag name (`tags/TAG_NAME`). For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation., sha: str # The SHA1 value to set this reference to}\n@optional {force: bool=false # Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.}\n@returns(200) {ref: str, node_id: str, url: str(uri), object: map{type: str, sha: str, url: str(uri)}} # Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"sha\":\"aa218f56b14c9653891f9e74264a383fa43fefbd\",\"force\":true}\n\n@endpoint DELETE /repos/{owner}/{repo}/git/refs/{ref}\n@desc Delete a reference\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., ref: str # The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.}\n@returns(204) Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint POST /repos/{owner}/{repo}/git/tags\n@desc Create a tag object\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., tag: str # The tag's name. This is typically a version (e.g., \"v0.0.1\")., message: str # The tag message., object: str # The SHA of the git object this is tagging., type: str(commit/tree/blob) # The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`.}\n@optional {tagger: map{name!: str, email!: str, date: str(date-time)} # An object with information about the individual creating the tag.}\n@returns(201) {node_id: str, tag: str, sha: str, url: str(uri), message: str, tagger: map{date: str, email: str, name: str}, object: map{sha: str, type: str, url: str(uri)}, verification: map{verified: bool, reason: str, payload: str?, signature: str?}} # Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"tag\":\"v0.0.1\",\"message\":\"initial version\",\"object\":\"c3d0be41ecbe669545ee3e94d31ed9a4bc91ee3c\",\"type\":\"commit\",\"tagger\":{\"name\":\"Monalisa Octocat\",\"email\":\"octocat@github.com\",\"date\":\"2011-06-17T14:53:35-07:00\"}}\n\n@endpoint GET /repos/{owner}/{repo}/git/tags/{tag_sha}\n@desc Get a tag\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., tag_sha: str}\n@returns(200) {node_id: str, tag: str, sha: str, url: str(uri), message: str, tagger: map{date: str, email: str, name: str}, object: map{sha: str, type: str, url: str(uri)}, verification: map{verified: bool, reason: str, payload: str?, signature: str?}} # Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/git/trees\n@desc Create a tree\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., tree: [map{path: str, mode: str, type: str, sha: str, content: str}] # Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure.}\n@optional {base_tree: str # The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on. If not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.}\n@returns(201) {sha: str, url: str(uri), truncated: bool, tree: [map]} # Response\n@errors {403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"base_tree\":\"9fb037999f264ba9a7fc6274d15fa3ae2ab98312\",\"tree\":[{\"path\":\"file.rb\",\"mode\":\"100644\",\"type\":\"blob\",\"sha\":\"44b4fc6d56897b048c772eb4087f854f46256132\"}]}\n\n@endpoint GET /repos/{owner}/{repo}/git/trees/{tree_sha}\n@desc Get a tree\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., tree_sha: str # The SHA1 value or ref (branch or tag) name of the tree.}\n@optional {recursive: str # Setting this parameter to any value returns the objects or subtrees referenced by the tree specified in `:tree_sha`. For example, setting `recursive` to any of the following will enable returning objects or subtrees: `0`, `1`, `\"true\"`, and `\"false\"`. Omit this parameter to prevent recursively returning objects or subtrees.}\n@returns(200) {sha: str, url: str(uri), truncated: bool, tree: [map]} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /repos/{owner}/{repo}/hooks\n@desc List repository webhooks\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/hooks\n@desc Create a repository webhook\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {name: str # Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`., config: map{url: str(uri), content_type: str, secret: str, insecure_ssl: any, token: str, digest: str} # Key/value pairs to provide settings for this webhook., events: [str]=push # Determines what [events](https://docs.github.com/enterprise-server@3.7/webhooks/event-payloads) the hook is triggered for., active: bool=true # Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.}\n@returns(201) {type: str, id: int, name: str, active: bool, events: [str], config: map{email: str, password: str, room: str, subdomain: str, url: str(uri), insecure_ssl: any, content_type: str, digest: str, secret: str, token: str}, updated_at: str(date-time), created_at: str(date-time), url: str(uri), test_url: str(uri), ping_url: str(uri), deliveries_url: str(uri), last_response: map{code: int?, status: str?, message: str?}} # Response\n@errors {403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"name\":\"web\",\"active\":true,\"events\":[\"push\",\"pull_request\"],\"config\":{\"url\":\"https://example.com/webhook\",\"content_type\":\"json\",\"insecure_ssl\":\"0\"}}\n\n@endpoint GET /repos/{owner}/{repo}/hooks/{hook_id}\n@desc Get a repository webhook\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.}\n@returns(200) {type: str, id: int, name: str, active: bool, events: [str], config: map{email: str, password: str, room: str, subdomain: str, url: str(uri), insecure_ssl: any, content_type: str, digest: str, secret: str, token: str}, updated_at: str(date-time), created_at: str(date-time), url: str(uri), test_url: str(uri), ping_url: str(uri), deliveries_url: str(uri), last_response: map{code: int?, status: str?, message: str?}} # Response\n@errors {404: Resource not found}\n\n@endpoint PATCH /repos/{owner}/{repo}/hooks/{hook_id}\n@desc Update a repository webhook\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.}\n@optional {config: map{url!: str(uri), content_type: str, secret: str, insecure_ssl: any, address: str, room: str} # Key/value pairs to provide settings for this webhook., events: [str]=push # Determines what [events](https://docs.github.com/enterprise-server@3.7/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events., add_events: [str] # Determines a list of events to be added to the list of events that the Hook triggers for., remove_events: [str] # Determines a list of events to be removed from the list of events that the Hook triggers for., active: bool=true # Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.}\n@returns(200) {type: str, id: int, name: str, active: bool, events: [str], config: map{email: str, password: str, room: str, subdomain: str, url: str(uri), insecure_ssl: any, content_type: str, digest: str, secret: str, token: str}, updated_at: str(date-time), created_at: str(date-time), url: str(uri), test_url: str(uri), ping_url: str(uri), deliveries_url: str(uri), last_response: map{code: int?, status: str?, message: str?}} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"active\":true,\"add_events\":[\"pull_request\"]}\n\n@endpoint DELETE /repos/{owner}/{repo}/hooks/{hook_id}\n@desc Delete a repository webhook\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/hooks/{hook_id}/config\n@desc Get a webhook configuration for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.}\n@returns(200) {url: str(uri), content_type: str, secret: str, insecure_ssl: any} # Response\n\n@endpoint PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config\n@desc Update a webhook configuration for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.}\n@optional {url: str(uri) # The URL to which the payloads will be delivered., content_type: str # The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`., secret: str # If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.7/webhooks/event-payloads/#delivery-headers)., insecure_ssl: any}\n@returns(200) {url: str(uri), content_type: str, secret: str, insecure_ssl: any} # Response\n@example_request {\"content_type\":\"json\",\"url\":\"https://example.com/webhook\"}\n\n@endpoint GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries\n@desc List deliveries for a repository webhook\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", cursor: str # Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors., redelivery: bool}\n@returns(200) Response\n@errors {400: Bad Request, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}\n@desc Get a delivery for a repository webhook\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery., delivery_id: int}\n@returns(200) {id: int, guid: str, delivered_at: str(date-time), redelivery: bool, duration: num, status: str, status_code: int, event: str, action: str?, installation_id: int?, repository_id: int?, url: str, request: map{headers: map?, payload: map?}, response: map{headers: map?, payload: str?}} # Response\n@errors {400: Bad Request, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts\n@desc Redeliver a delivery for a repository webhook\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery., delivery_id: int}\n@returns(202) Accepted\n@errors {400: Bad Request, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint POST /repos/{owner}/{repo}/hooks/{hook_id}/pings\n@desc Ping a repository webhook\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/hooks/{hook_id}/tests\n@desc Test the push repository webhook\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., hook_id: int # The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/installation\n@desc Get a repository installation for the authenticated app\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) {id: int, account: any?, repository_selection: str, access_tokens_url: str(uri), repositories_url: str(uri), html_url: str(uri), app_id: int, target_id: int, target_type: str, permissions: map{actions: str, administration: str, checks: str, codespaces: str, contents: str, dependabot_secrets: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_copilot_seat_management: str, organization_events: str, organization_hooks: str, organization_personal_access_tokens: str, organization_personal_access_token_requests: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str, email_addresses: str, followers: str, git_ssh_keys: str, gpg_keys: str, interaction_limits: str, profile: str, starring: str}, events: [str], created_at: str(date-time), updated_at: str(date-time), single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], app_slug: str, suspended_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, suspended_at: str(date-time)?, contact_email: str?} # Response\n@errors {301: Moved permanently, 404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/invitations\n@desc List repository invitations\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint PATCH /repos/{owner}/{repo}/invitations/{invitation_id}\n@desc Update a repository invitation\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., invitation_id: int # The unique identifier of the invitation.}\n@optional {permissions: str(read/write/maintain/triage/admin) # The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.}\n@returns(200) {id: int, repository: map{id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, role_name: str, temp_clone_token: str, delete_branch_on_merge: bool, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, web_commit_signoff_required: bool}, invitee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, inviter: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, permissions: str, created_at: str(date-time), expired: bool, url: str, html_url: str, node_id: str} # Response\n@example_request {\"permissions\":\"write\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/invitations/{invitation_id}\n@desc Delete a repository invitation\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., invitation_id: int # The unique identifier of the invitation.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/issues\n@desc List repository issues\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {milestone: str # If an `integer` is passed, it should refer to a milestone by its `number` field. If the string `*` is passed, issues with any milestone are accepted. If the string `none` is passed, issues without milestones are returned., state: str(open/closed/all)=open # Indicates the state of the issues to return., assignee: str # Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user., creator: str # The user that created the issue., mentioned: str # A user that's mentioned in the issue., labels: str # A list of comma separated label names. Example: `bug,ui,@high`, sort: str(created/updated/comments)=created # What to sort results by., direction: str(asc/desc)=desc # The direction to sort the results by., since: str(date-time) # Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {301: Moved permanently, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint POST /repos/{owner}/{repo}/issues\n@desc Create an issue\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., title: any # The title of the issue.}\n@optional {body: str # The contents of the issue., assignee: str # Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_, milestone: any, labels: [any] # Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._, assignees: [str] # Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._}\n@returns(201) {id: int(int64), node_id: str, url: str(uri), repository_url: str(uri), labels_url: str, comments_url: str(uri), events_url: str(uri), html_url: str(uri), number: int, state: str, state_reason: str?, title: str, body: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, labels: [any], assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, locked: bool, active_lock_reason: str?, comments: int, pull_request: map{merged_at: str(date-time)?, diff_url: str(uri)?, html_url: str(uri)?, patch_url: str(uri)?, url: str(uri)?}, closed_at: str(date-time)?, created_at: str(date-time), updated_at: str(date-time), draft: bool, closed_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body_html: str, body_text: str, timeline_url: str(uri), repository: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, author_association: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {400: Bad Request, 403: Forbidden, 404: Resource not found, 410: Gone, 422: Validation failed, or the endpoint has been spammed., 503: Service unavailable}\n@example_request {\"title\":\"Found a bug\",\"body\":\"I'm having a problem with this.\",\"assignees\":[\"octocat\"],\"milestone\":1,\"labels\":[\"bug\"]}\n\n@endpoint GET /repos/{owner}/{repo}/issues/comments\n@desc List issue comments for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {sort: str(created/updated)=created # The property to sort the results by., direction: str(asc/desc) # Either `asc` or `desc`. Ignored without the `sort` parameter., since: str(date-time) # Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /repos/{owner}/{repo}/issues/comments/{comment_id}\n@desc Get an issue comment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., comment_id: int # The unique identifier of the comment.}\n@returns(200) {id: int(int64), node_id: str, url: str(uri), body: str, body_text: str, body_html: str, html_url: str(uri), user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), issue_url: str(uri), author_association: str, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {404: Resource not found}\n\n@endpoint PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}\n@desc Update an issue comment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., comment_id: int # The unique identifier of the comment., body: str # The contents of the comment.}\n@returns(200) {id: int(int64), node_id: str, url: str(uri), body: str, body_text: str, body_html: str, html_url: str(uri), user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), issue_url: str(uri), author_association: str, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"body\":\"Me too\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}\n@desc Delete an issue comment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., comment_id: int # The unique identifier of the comment.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions\n@desc List reactions for an issue comment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., comment_id: int # The unique identifier of the comment.}\n@optional {content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # Returns a single [reaction type](https://docs.github.com/enterprise-server@3.7/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to an issue comment., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions\n@desc Create reaction for an issue comment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., comment_id: int # The unique identifier of the comment., content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # The [reaction type](https://docs.github.com/enterprise-server@3.7/rest/reactions/reactions#about-reactions) to add to the issue comment.}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Reaction exists\n@returns(201) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Reaction created\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"content\":\"heart\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}\n@desc Delete an issue comment reaction\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., comment_id: int # The unique identifier of the comment., reaction_id: int # The unique identifier of the reaction.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/issues/events\n@desc List issue events for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /repos/{owner}/{repo}/issues/events/{event_id}\n@desc Get an issue event\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., event_id: int}\n@returns(200) {id: int(int64), node_id: str, url: str(uri), actor: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, event: str, commit_id: str?, commit_url: str?, created_at: str(date-time), issue: map?{id: int(int64), node_id: str, url: str(uri), repository_url: str(uri), labels_url: str, comments_url: str(uri), events_url: str(uri), html_url: str(uri), number: int, state: str, state_reason: str?, title: str, body: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, labels: [any], assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, locked: bool, active_lock_reason: str?, comments: int, pull_request: map{merged_at: str(date-time)?, diff_url: str(uri)?, html_url: str(uri)?, patch_url: str(uri)?, url: str(uri)?}, closed_at: str(date-time)?, created_at: str(date-time), updated_at: str(date-time), draft: bool, closed_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body_html: str, body_text: str, timeline_url: str(uri), repository: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, author_association: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}}, label: map{name: str?, color: str?}, assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assigner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, review_requester: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, requested_reviewer: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, requested_team: map{id: int, node_id: str, name: str, slug: str, description: str?, privacy: str, permission: str, permissions: map{pull: bool, triage: bool, push: bool, maintain: bool, admin: bool}, url: str(uri), html_url: str(uri), members_url: str, repositories_url: str(uri), parent: map?{id: int, node_id: str, url: str(uri), members_url: str, name: str, description: str?, permission: str, privacy: str, html_url: str(uri), repositories_url: str(uri), slug: str, ldap_dn: str}}, dismissed_review: map{state: str, review_id: int, dismissal_message: str?, dismissal_commit_id: str?}, milestone: map{title: str}, project_card: map{url: str(uri), id: int, project_url: str(uri), project_id: int, column_name: str, previous_column_name: str}, rename: map{from: str, to: str}, author_association: str, lock_reason: str?, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}} # Response\n@errors {403: Forbidden, 404: Resource not found, 410: Gone}\n\n@endpoint GET /repos/{owner}/{repo}/issues/{issue_number}\n@desc Get an issue\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., issue_number: int # The number that identifies the issue.}\n@returns(200) {id: int(int64), node_id: str, url: str(uri), repository_url: str(uri), labels_url: str, comments_url: str(uri), events_url: str(uri), html_url: str(uri), number: int, state: str, state_reason: str?, title: str, body: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, labels: [any], assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, locked: bool, active_lock_reason: str?, comments: int, pull_request: map{merged_at: str(date-time)?, diff_url: str(uri)?, html_url: str(uri)?, patch_url: str(uri)?, url: str(uri)?}, closed_at: str(date-time)?, created_at: str(date-time), updated_at: str(date-time), draft: bool, closed_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body_html: str, body_text: str, timeline_url: str(uri), repository: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, author_association: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {301: Moved permanently, 304: Not modified, 404: Resource not found, 410: Gone}\n\n@endpoint PATCH /repos/{owner}/{repo}/issues/{issue_number}\n@desc Update an issue\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., issue_number: int # The number that identifies the issue.}\n@optional {title: any # The title of the issue., body: str # The contents of the issue., assignee: str # Username to assign to this issue. **This field is deprecated.**, state: str(open/closed) # The open or closed state of the issue., state_reason: str(completed/not_planned/reopened) # The reason for the state change. Ignored unless `state` is changed., milestone: any, labels: [any] # Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped., assignees: [str] # Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped.}\n@returns(200) {id: int(int64), node_id: str, url: str(uri), repository_url: str(uri), labels_url: str, comments_url: str(uri), events_url: str(uri), html_url: str(uri), number: int, state: str, state_reason: str?, title: str, body: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, labels: [any], assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, locked: bool, active_lock_reason: str?, comments: int, pull_request: map{merged_at: str(date-time)?, diff_url: str(uri)?, html_url: str(uri)?, patch_url: str(uri)?, url: str(uri)?}, closed_at: str(date-time)?, created_at: str(date-time), updated_at: str(date-time), draft: bool, closed_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body_html: str, body_text: str, timeline_url: str(uri), repository: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, author_association: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {301: Moved permanently, 403: Forbidden, 404: Resource not found, 410: Gone, 422: Validation failed, or the endpoint has been spammed., 503: Service unavailable}\n@example_request {\"title\":\"Found a bug\",\"body\":\"I'm having a problem with this.\",\"assignees\":[\"octocat\"],\"milestone\":1,\"state\":\"open\",\"labels\":[\"bug\"]}\n\n@endpoint POST /repos/{owner}/{repo}/issues/{issue_number}/assignees\n@desc Add assignees to an issue\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., issue_number: int # The number that identifies the issue.}\n@optional {assignees: [str] # Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._}\n@returns(201) {id: int(int64), node_id: str, url: str(uri), repository_url: str(uri), labels_url: str, comments_url: str(uri), events_url: str(uri), html_url: str(uri), number: int, state: str, state_reason: str?, title: str, body: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, labels: [any], assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, locked: bool, active_lock_reason: str?, comments: int, pull_request: map{merged_at: str(date-time)?, diff_url: str(uri)?, html_url: str(uri)?, patch_url: str(uri)?, url: str(uri)?}, closed_at: str(date-time)?, created_at: str(date-time), updated_at: str(date-time), draft: bool, closed_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body_html: str, body_text: str, timeline_url: str(uri), repository: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, author_association: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@example_request {\"assignees\":[\"hubot\",\"other_user\"]}\n\n@endpoint DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees\n@desc Remove assignees from an issue\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., issue_number: int # The number that identifies the issue.}\n@optional {assignees: [str] # Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._}\n@returns(200) {id: int(int64), node_id: str, url: str(uri), repository_url: str(uri), labels_url: str, comments_url: str(uri), events_url: str(uri), html_url: str(uri), number: int, state: str, state_reason: str?, title: str, body: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, labels: [any], assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, locked: bool, active_lock_reason: str?, comments: int, pull_request: map{merged_at: str(date-time)?, diff_url: str(uri)?, html_url: str(uri)?, patch_url: str(uri)?, url: str(uri)?}, closed_at: str(date-time)?, created_at: str(date-time), updated_at: str(date-time), draft: bool, closed_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body_html: str, body_text: str, timeline_url: str(uri), repository: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, author_association: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@example_request {\"assignees\":[\"hubot\",\"other_user\"]}\n\n@endpoint GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}\n@desc Check if a user can be assigned to a issue\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., issue_number: int # The number that identifies the issue., assignee: str}\n@returns(204) Response if `assignee` can be assigned to `issue_number`\n@errors {404: Response if `assignee` can not be assigned to `issue_number`}\n\n@endpoint GET /repos/{owner}/{repo}/issues/{issue_number}/comments\n@desc List issue comments\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., issue_number: int # The number that identifies the issue.}\n@optional {since: str(date-time) # Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found, 410: Gone}\n\n@endpoint POST /repos/{owner}/{repo}/issues/{issue_number}/comments\n@desc Create an issue comment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., issue_number: int # The number that identifies the issue., body: str # The contents of the comment.}\n@returns(201) {id: int(int64), node_id: str, url: str(uri), body: str, body_text: str, body_html: str, html_url: str(uri), user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), issue_url: str(uri), author_association: str, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {403: Forbidden, 404: Resource not found, 410: Gone, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"body\":\"Me too\"}\n\n@endpoint GET /repos/{owner}/{repo}/issues/{issue_number}/events\n@desc List issue events\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., issue_number: int # The number that identifies the issue.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {410: Gone}\n\n@endpoint GET /repos/{owner}/{repo}/issues/{issue_number}/labels\n@desc List labels for an issue\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., issue_number: int # The number that identifies the issue.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {301: Moved permanently, 404: Resource not found, 410: Gone}\n\n@endpoint POST /repos/{owner}/{repo}/issues/{issue_number}/labels\n@desc Add labels to an issue\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., issue_number: int # The number that identifies the issue.}\n@returns(200) Response\n@errors {301: Moved permanently, 404: Resource not found, 410: Gone, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"labels\":[\"bug\",\"enhancement\"]}\n\n@endpoint PUT /repos/{owner}/{repo}/issues/{issue_number}/labels\n@desc Set labels for an issue\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., issue_number: int # The number that identifies the issue.}\n@returns(200) Response\n@errors {301: Moved permanently, 404: Resource not found, 410: Gone, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"labels\":[\"bug\",\"enhancement\"]}\n\n@endpoint DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels\n@desc Remove all labels from an issue\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., issue_number: int # The number that identifies the issue.}\n@returns(204) Response\n@errors {301: Moved permanently, 404: Resource not found, 410: Gone}\n\n@endpoint DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}\n@desc Remove a label from an issue\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., issue_number: int # The number that identifies the issue., name: str}\n@returns(200) Response\n@errors {301: Moved permanently, 404: Resource not found, 410: Gone}\n\n@endpoint PUT /repos/{owner}/{repo}/issues/{issue_number}/lock\n@desc Lock an issue\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., issue_number: int # The number that identifies the issue.}\n@optional {lock_reason: str(off-topic/too heated/resolved/spam) # The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons:    * `off-topic`    * `too heated`    * `resolved`    * `spam`}\n@returns(204) Response\n@errors {403: Forbidden, 404: Resource not found, 410: Gone, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"lock_reason\":\"off-topic\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock\n@desc Unlock an issue\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., issue_number: int # The number that identifies the issue.}\n@returns(204) Response\n@errors {403: Forbidden, 404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/issues/{issue_number}/reactions\n@desc List reactions for an issue\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., issue_number: int # The number that identifies the issue.}\n@optional {content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # Returns a single [reaction type](https://docs.github.com/enterprise-server@3.7/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to an issue., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found, 410: Gone}\n\n@endpoint POST /repos/{owner}/{repo}/issues/{issue_number}/reactions\n@desc Create reaction for an issue\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., issue_number: int # The number that identifies the issue., content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # The [reaction type](https://docs.github.com/enterprise-server@3.7/rest/reactions/reactions#about-reactions) to add to the issue.}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Response\n@returns(201) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"content\":\"heart\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}\n@desc Delete an issue reaction\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., issue_number: int # The number that identifies the issue., reaction_id: int # The unique identifier of the reaction.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/issues/{issue_number}/timeline\n@desc List timeline events for an issue\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., issue_number: int # The number that identifies the issue.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found, 410: Gone}\n\n@endpoint GET /repos/{owner}/{repo}/keys\n@desc List deploy keys\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint POST /repos/{owner}/{repo}/keys\n@desc Create a deploy key\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., key: str # The contents of the key.}\n@optional {title: str # A name for the key., read_only: bool # If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write.      Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see \"[Repository permission levels for an organization](https://docs.github.com/enterprise-server@3.7/articles/repository-permission-levels-for-an-organization/)\" and \"[Permission levels for a user account repository](https://docs.github.com/enterprise-server@3.7/articles/permission-levels-for-a-user-account-repository/).\"}\n@returns(201) {id: int, key: str, url: str, title: str, verified: bool, created_at: str, read_only: bool, added_by: str?, last_used: str?} # Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"title\":\"octocat@octomac\",\"key\":\"ssh-rsa AAA...\",\"read_only\":true}\n\n@endpoint GET /repos/{owner}/{repo}/keys/{key_id}\n@desc Get a deploy key\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., key_id: int # The unique identifier of the key.}\n@returns(200) {id: int, key: str, url: str, title: str, verified: bool, created_at: str, read_only: bool, added_by: str?, last_used: str?} # Response\n@errors {404: Resource not found}\n\n@endpoint DELETE /repos/{owner}/{repo}/keys/{key_id}\n@desc Delete a deploy key\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., key_id: int # The unique identifier of the key.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/labels\n@desc List labels for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/labels\n@desc Create a label\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., name: str # The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png \":strawberry:\"). For a full list of available emoji and codes, see \"[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet).\"}\n@optional {color: str # The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`., description: str # A short description of the label. Must be 100 characters or fewer.}\n@returns(201) {id: int(int64), node_id: str, url: str(uri), name: str, description: str?, color: str, default: bool} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"name\":\"bug\",\"description\":\"Something isn't working\",\"color\":\"f29513\"}\n\n@endpoint GET /repos/{owner}/{repo}/labels/{name}\n@desc Get a label\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., name: str}\n@returns(200) {id: int(int64), node_id: str, url: str(uri), name: str, description: str?, color: str, default: bool} # Response\n@errors {404: Resource not found}\n\n@endpoint PATCH /repos/{owner}/{repo}/labels/{name}\n@desc Update a label\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., name: str}\n@optional {new_name: str # The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png \":strawberry:\"). For a full list of available emoji and codes, see \"[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet).\", color: str # The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`., description: str # A short description of the label. Must be 100 characters or fewer.}\n@returns(200) {id: int(int64), node_id: str, url: str(uri), name: str, description: str?, color: str, default: bool} # Response\n@example_request {\"new_name\":\"bug :bug:\",\"description\":\"Small bug fix required\",\"color\":\"b01f26\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/labels/{name}\n@desc Delete a label\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., name: str}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/languages\n@desc List repository languages\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) Response\n\n@endpoint PUT /repos/{owner}/{repo}/lfs\n@desc Enable Git LFS for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(202) Accepted\n@errors {403: We will return a 403 with one of the following messages:  - Git LFS support not enabled because Git LFS is globally disabled. - Git LFS support not enabled because Git LFS is disabled for the root repository in the network. - Git LFS support not enabled because Git LFS is disabled for .}\n\n@endpoint DELETE /repos/{owner}/{repo}/lfs\n@desc Disable Git LFS for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/license\n@desc Get the license for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) {name: str, path: str, sha: str, size: int, url: str(uri), html_url: str(uri)?, git_url: str(uri)?, download_url: str(uri)?, type: str, content: str, encoding: str, _links: map{git: str(uri)?, html: str(uri)?, self: str(uri)}, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}} # Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/merge-upstream\n@desc Sync a fork branch with the upstream repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., branch: str # The name of the branch which should be updated to match upstream.}\n@returns(200) {message: str, merge_type: str, base_branch: str} # The branch has been successfully synced with the upstream repository\n@errors {409: The branch could not be synced because of a merge conflict, 422: The branch could not be synced for some other reason}\n@example_request {\"branch\":\"main\"}\n\n@endpoint POST /repos/{owner}/{repo}/merges\n@desc Merge a branch\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., base: str # The name of the base branch that the head will be merged into., head: str # The head to merge. This can be a branch name or a commit SHA1.}\n@optional {commit_message: str # Commit message to use for the merge commit. If omitted, a default message will be used.}\n@returns(201) {url: str(uri), sha: str, node_id: str, html_url: str(uri), comments_url: str(uri), commit: map{url: str(uri), author: map?{name: str, email: str, date: str}, committer: map?{name: str, email: str, date: str}, message: str, comment_count: int, tree: map{sha: str, url: str(uri)}, verification: map{verified: bool, reason: str, payload: str?, signature: str?}}, author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, committer: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, parents: [map], stats: map{additions: int, deletions: int, total: int}, files: [map]} # Successful Response (The resulting merge commit)\n@returns(204) Response when already merged\n@errors {403: Forbidden, 404: Not Found when the base or head does not exist, 409: Conflict when there is a merge conflict, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"base\":\"master\",\"head\":\"cool_feature\",\"commit_message\":\"Shipped cool_feature!\"}\n\n@endpoint GET /repos/{owner}/{repo}/milestones\n@desc List milestones\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {state: str(open/closed/all)=open # The state of the milestone. Either `open`, `closed`, or `all`., sort: str(due_on/completeness)=due_on # What to sort results by. Either `due_on` or `completeness`., direction: str(asc/desc)=asc # The direction of the sort. Either `asc` or `desc`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/milestones\n@desc Create a milestone\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., title: str # The title of the milestone.}\n@optional {state: str(open/closed)=open # The state of the milestone. Either `open` or `closed`., description: str # A description of the milestone., due_on: str(date-time) # The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.}\n@returns(201) {url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"title\":\"v1.0\",\"state\":\"open\",\"description\":\"Tracking milestone for version 1.0\",\"due_on\":\"2012-10-09T23:39:01Z\"}\n\n@endpoint GET /repos/{owner}/{repo}/milestones/{milestone_number}\n@desc Get a milestone\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., milestone_number: int # The number that identifies the milestone.}\n@returns(200) {url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?} # Response\n@errors {404: Resource not found}\n\n@endpoint PATCH /repos/{owner}/{repo}/milestones/{milestone_number}\n@desc Update a milestone\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., milestone_number: int # The number that identifies the milestone.}\n@optional {title: str # The title of the milestone., state: str(open/closed)=open # The state of the milestone. Either `open` or `closed`., description: str # A description of the milestone., due_on: str(date-time) # The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.}\n@returns(200) {url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?} # Response\n@example_request {\"title\":\"v1.0\",\"state\":\"open\",\"description\":\"Tracking milestone for version 1.0\",\"due_on\":\"2012-10-09T23:39:01Z\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/milestones/{milestone_number}\n@desc Delete a milestone\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., milestone_number: int # The number that identifies the milestone.}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels\n@desc List labels for issues in a milestone\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., milestone_number: int # The number that identifies the milestone.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/notifications\n@desc List repository notifications for the authenticated user\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {all: bool=false # If `true`, show notifications marked as read., participating: bool=false # If `true`, only shows notifications in which the user is directly participating or mentioned., since: str(date-time) # Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., before: str(date-time) # Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint PUT /repos/{owner}/{repo}/notifications\n@desc Mark repository notifications as read\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {last_read_at: str(date-time) # Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.}\n@returns(202) {message: str, url: str} # Response\n@returns(205) Reset Content\n@example_request {\"last_read_at\":\"2019-01-01T00:00:00Z\"}\n\n@endpoint GET /repos/{owner}/{repo}/pages\n@desc Get a GitHub Enterprise Server Pages site\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) {url: str(uri), status: str?, cname: str?, protected_domain_state: str?, pending_domain_unverified_at: str(date-time)?, custom_404: bool, html_url: str(uri), build_type: str?, source: map{branch: str, path: str}, public: bool, https_certificate: map{state: str, description: str, domains: [str], expires_at: str(date)}, https_enforced: bool} # Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/pages\n@desc Create a GitHub Enterprise Server Pages site\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {build_type: str(legacy/workflow) # The process in which the Page will be built. Possible values are `\"legacy\"` and `\"workflow\"`., source: map{branch!: str, path: str} # The source branch and directory used to publish your Pages site.}\n@returns(201) {url: str(uri), status: str?, cname: str?, protected_domain_state: str?, pending_domain_unverified_at: str(date-time)?, custom_404: bool, html_url: str(uri), build_type: str?, source: map{branch: str, path: str}, public: bool, https_certificate: map{state: str, description: str, domains: [str], expires_at: str(date)}, https_enforced: bool} # Response\n@errors {409: Conflict, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"source\":{\"branch\":\"main\",\"path\":\"/docs\"}}\n\n@endpoint PUT /repos/{owner}/{repo}/pages\n@desc Update information about a GitHub Enterprise Server Pages site\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {cname: str # Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see \"[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-server@3.7/articles/using-a-custom-domain-with-github-pages/).\", https_enforced: bool # Specify whether HTTPS should be enforced for the repository., build_type: str(legacy/workflow) # The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch., source: any}\n@returns(204) Response\n@errors {400: Bad Request, 409: Conflict, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"cname\":\"octocatblog.com\",\"source\":{\"branch\":\"main\",\"path\":\"/\"}}\n\n@endpoint DELETE /repos/{owner}/{repo}/pages\n@desc Delete a GitHub Enterprise Server Pages site\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(204) Response\n@errors {404: Resource not found, 409: Conflict, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /repos/{owner}/{repo}/pages/builds\n@desc List GitHub Enterprise Server Pages builds\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint POST /repos/{owner}/{repo}/pages/builds\n@desc Request a GitHub Enterprise Server Pages build\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(201) {url: str(uri), status: str} # Response\n\n@endpoint GET /repos/{owner}/{repo}/pages/builds/latest\n@desc Get latest Pages build\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) {url: str(uri), status: str, error: map{message: str?}, pusher: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, commit: str, duration: int, created_at: str(date-time), updated_at: str(date-time)} # Response\n\n@endpoint GET /repos/{owner}/{repo}/pages/builds/{build_id}\n@desc Get GitHub Enterprise Server Pages build\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., build_id: int}\n@returns(200) {url: str(uri), status: str, error: map{message: str?}, pusher: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, commit: str, duration: int, created_at: str(date-time), updated_at: str(date-time)} # Response\n\n@endpoint POST /repos/{owner}/{repo}/pages/deployment\n@desc Create a GitHub Pages deployment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., artifact_url: str # The URL of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository., pages_build_version: str=GITHUB_SHA # A unique string that represents the version of the build for this deployment., oidc_token: str # The OIDC token issued by GitHub Actions certifying the origin of the deployment.}\n@optional {environment: str=github-pages # The target environment for this GitHub Pages deployment.}\n@returns(200) {status_url: str(uri), page_url: str(uri), preview_url: str(uri)} # Response\n@errors {400: Bad Request, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"artifact_url\":\"https://downloadcontent/\",\"environment\":\"github-pages\",\"pages_build_version\":\"4fd754f7e594640989b406850d0bc8f06a121251\",\"oidc_token\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlV2R1h4SUhlY0JFc1JCdEttemUxUEhfUERiVSIsImtpZCI6IjUyRjE5N0M0ODFERTcwMTEyQzQ0MUI0QTlCMzdCNTNDN0ZDRjBEQjUifQ.eyJqdGkiOiJhMWIwNGNjNy0zNzZiLTQ1N2QtOTMzNS05NTY5YmVjZDExYTIiLCJzdWIiOiJyZXBvOnBhcGVyLXNwYS9taW55aTplbnZpcm9ubWVudDpQcm9kdWN0aW9uIiwiYXVkIjoiaHR0cHM6Ly9naXRodWIuY29tL3BhcGVyLXNwYSIsInJlZiI6InJlZnMvaGVhZHMvbWFpbiIsInNoYSI6ImEyODU1MWJmODdiZDk3NTFiMzdiMmM0YjM3M2MxZjU3NjFmYWM2MjYiLCJyZXBvc2l0b3J5IjoicGFwZXItc3BhL21pbnlpIiwicmVwb3NpdG9yeV9vd25lciI6InBhcGVyLXNwYSIsInJ1bl9pZCI6IjE1NDY0NTkzNjQiLCJydW5fbnVtYmVyIjoiMzQiLCJydW5fYXR0ZW1wdCI6IjYiLCJhY3RvciI6IllpTXlzdHkiLCJ3b3JrZmxvdyI6IkNJIiwiaGVhZF9yZWYiOiIiLCJiYXNlX3JlZiI6IiIsImV2ZW50X25hbWUiOiJwdXNoIiwicmVmX3R5cGUiOiJicmFuY2giLCJlbnZpcm9ubWVudCI6IlByb2R1Y3Rpb24iLCJqb2Jfd29ya2Zsb3dfcmVmIjoicGFwZXItc3BhL21pbnlpLy5naXRodWIvd29ya2Zsb3dzL2JsYW5rLnltbEByZWZzL2hlYWRzL21haW4iLCJpc3MiOiJodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwibmJmIjoxNjM5MDAwODU2LCJleHAiOjE2MzkwMDE3NTYsImlhdCI6MTYzOTAwMTQ1Nn0.VP8WictbQECKozE2SgvKb2FqJ9hisWsoMkYRTqfBrQfZTCXi5IcFEdgDMB2X7a99C2DeUuTvHh9RMKXLL2a0zg3-Sd7YrO7a2ll2kNlnvyIypcN6AeIc7BxHsTTnZN9Ud_xmEsTrSRGOEKmzCFkULQ6N4zlVD0sidypmXlMemmWEcv_ZHqhioEI_VMp5vwXQurketWH7qX4oDgG4okyYtPrv5RQHbfQcVo9izaPJ_jnsDd0CBA0QOx9InjPidtIkMYQLyUgJy33HLJy86EFNUnAf8UhBQuQi5mAsEpEzBBuKpG3PDiPtYCHOk64JZkZGd5mR888a5sbHRiaF8hm8YA\",\"preview\":false}\n\n@endpoint GET /repos/{owner}/{repo}/pre-receive-hooks\n@desc List pre-receive hooks for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", direction: str(asc/desc)=desc # The direction to sort the results by., sort: str(created/updated/name)=created}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}\n@desc Get a pre-receive hook for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pre_receive_hook_id: int # The unique identifier of the pre-receive hook.}\n@returns(200) {id: int, name: str, enforcement: str, configuration_url: str} # Response\n\n@endpoint PATCH /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}\n@desc Update pre-receive hook enforcement for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pre_receive_hook_id: int # The unique identifier of the pre-receive hook.}\n@optional {enforcement: str(enabled/disabled/testing) # The state of enforcement for the hook on this repository.}\n@returns(200) {id: int, name: str, enforcement: str, configuration_url: str} # Response\n@example_request {\"enforcement\":\"enabled\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}\n@desc Remove pre-receive hook enforcement for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pre_receive_hook_id: int # The unique identifier of the pre-receive hook.}\n@returns(200) {id: int, name: str, enforcement: str, configuration_url: str} # Responds with effective values inherited from owner and/or global level.\n\n@endpoint GET /repos/{owner}/{repo}/projects\n@desc List repository projects\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {state: str(open/closed/all)=open # Indicates the state of the projects to return., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {401: Requires authentication, 403: Forbidden, 404: Resource not found, 410: Gone, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint POST /repos/{owner}/{repo}/projects\n@desc Create a repository project\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., name: str # The name of the project.}\n@optional {body: str # The description of the project.}\n@returns(201) {owner_url: str(uri), url: str(uri), html_url: str(uri), columns_url: str(uri), id: int, node_id: str, name: str, body: str?, number: int, state: str, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), organization_permission: str, private: bool} # Response\n@errors {401: Requires authentication, 403: Forbidden, 404: Resource not found, 410: Gone, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"name\":\"Projects Documentation\",\"body\":\"Developer documentation project for the developer site.\"}\n\n@endpoint GET /repos/{owner}/{repo}/pulls\n@desc List pull requests\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {state: str(open/closed/all)=open # Either `open`, `closed`, or `all` to filter by state., head: str # Filter pulls by head user or head organization and branch name in the format of `user:ref-name` or `organization:ref-name`. For example: `github:new-script-format` or `octocat:test-branch`., base: str # Filter pulls by base branch name. Example: `gh-pages`., sort: str(created/updated/popularity/long-running)=created # What to sort results by. `popularity` will sort by the number of comments. `long-running` will sort by date created and will limit the results to pull requests that have been open for more than a month and have had activity within the past month., direction: str(asc/desc) # The direction of the sort. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint POST /repos/{owner}/{repo}/pulls\n@desc Create a pull request\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., head: str # The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`., base: str # The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.}\n@optional {title: str # The title of the new pull request. Required unless `issue` is specified., body: str # The contents of the pull request., maintainer_can_modify: bool # Indicates whether [maintainers can modify](https://docs.github.com/enterprise-server@3.7/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request., draft: bool # Indicates whether the pull request is a draft. See \"[Draft Pull Requests](https://docs.github.com/enterprise-server@3.7/articles/about-pull-requests#draft-pull-requests)\" in the GitHub Help documentation to learn more., issue: int(int64) # An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.}\n@returns(201) {url: str(uri), id: int, node_id: str, html_url: str(uri), diff_url: str(uri), patch_url: str(uri), issue_url: str(uri), commits_url: str(uri), review_comments_url: str(uri), review_comment_url: str, comments_url: str(uri), statuses_url: str(uri), number: int, state: str, locked: bool, title: str, user: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str?, labels: [map], milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, active_lock_reason: str?, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, merged_at: str(date-time)?, merge_commit_sha: str?, assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, requested_reviewers: [map]?, requested_teams: [map]?, head: map{label: str, ref: str, repo: map?{archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), description: str?, downloads_url: str(uri), events_url: str(uri), fork: bool, forks_url: str(uri), full_name: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, hooks_url: str(uri), html_url: str(uri), id: int, node_id: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, name: str, notifications_url: str, owner: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}, private: bool, pulls_url: str, releases_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, url: str(uri), clone_url: str, default_branch: str, forks: int, forks_count: int, git_url: str, has_downloads: bool, has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_discussions: bool, homepage: str(uri)?, language: str?, master_branch: str, archived: bool, disabled: bool, visibility: str, mirror_url: str(uri)?, open_issues: int, open_issues_count: int, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, temp_clone_token: str, allow_merge_commit: bool, allow_squash_merge: bool, allow_rebase_merge: bool, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str}, pushed_at: str(date-time), size: int, ssh_url: str, stargazers_count: int, svn_url: str(uri), topics: [str], watchers: int, watchers_count: int, created_at: str(date-time), updated_at: str(date-time), allow_forking: bool, is_template: bool, web_commit_signoff_required: bool}, sha: str, user: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}}, base: map{label: str, ref: str, repo: map{archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), description: str?, downloads_url: str(uri), events_url: str(uri), fork: bool, forks_url: str(uri), full_name: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, hooks_url: str(uri), html_url: str(uri), id: int, is_template: bool, node_id: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, name: str, notifications_url: str, owner: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}, private: bool, pulls_url: str, releases_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, url: str(uri), clone_url: str, default_branch: str, forks: int, forks_count: int, git_url: str, has_downloads: bool, has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_discussions: bool, homepage: str(uri)?, language: str?, master_branch: str, archived: bool, disabled: bool, visibility: str, mirror_url: str(uri)?, open_issues: int, open_issues_count: int, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, temp_clone_token: str, allow_merge_commit: bool, allow_squash_merge: bool, allow_rebase_merge: bool, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, pushed_at: str(date-time), size: int, ssh_url: str, stargazers_count: int, svn_url: str(uri), topics: [str], watchers: int, watchers_count: int, created_at: str(date-time), updated_at: str(date-time), allow_forking: bool, web_commit_signoff_required: bool}, sha: str, user: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}}, _links: map{comments: map{href: str}, commits: map{href: str}, statuses: map{href: str}, html: map{href: str}, issue: map{href: str}, review_comments: map{href: str}, review_comment: map{href: str}, self: map{href: str}}, author_association: str, auto_merge: map?{enabled_by: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, merge_method: str, commit_title: str, commit_message: str}, draft: bool, merged: bool, mergeable: bool?, rebaseable: bool?, mergeable_state: str, merged_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, comments: int, review_comments: int, maintainer_can_modify: bool, commits: int, additions: int, deletions: int, changed_files: int} # Response\n@errors {403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"title\":\"Amazing new feature\",\"body\":\"Please pull these awesome changes in!\",\"head\":\"octocat:new-feature\",\"base\":\"master\"}\n\n@endpoint GET /repos/{owner}/{repo}/pulls/comments\n@desc List review comments in a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {sort: str(created/updated/created_at), direction: str(asc/desc) # The direction to sort results. Ignored without `sort` parameter., since: str(date-time) # Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/pulls/comments/{comment_id}\n@desc Get a review comment for a pull request\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., comment_id: int # The unique identifier of the comment.}\n@returns(200) {url: str, pull_request_review_id: int?, id: int, node_id: str, diff_hunk: str, path: str, position: int, original_position: int, commit_id: str, original_commit_id: str, in_reply_to_id: int, user: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, created_at: str(date-time), updated_at: str(date-time), html_url: str(uri), pull_request_url: str(uri), author_association: str, _links: map{self: map{href: str(uri)}, html: map{href: str(uri)}, pull_request: map{href: str(uri)}}, start_line: int?, original_start_line: int?, start_side: str?, line: int, original_line: int, side: str, subject_type: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}, body_html: str, body_text: str} # Response\n@errors {404: Resource not found}\n\n@endpoint PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}\n@desc Update a review comment for a pull request\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., comment_id: int # The unique identifier of the comment., body: str # The text of the reply to the review comment.}\n@returns(200) {url: str, pull_request_review_id: int?, id: int, node_id: str, diff_hunk: str, path: str, position: int, original_position: int, commit_id: str, original_commit_id: str, in_reply_to_id: int, user: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, created_at: str(date-time), updated_at: str(date-time), html_url: str(uri), pull_request_url: str(uri), author_association: str, _links: map{self: map{href: str(uri)}, html: map{href: str(uri)}, pull_request: map{href: str(uri)}}, start_line: int?, original_start_line: int?, start_side: str?, line: int, original_line: int, side: str, subject_type: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}, body_html: str, body_text: str} # Response\n@example_request {\"body\":\"I like this too!\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}\n@desc Delete a review comment for a pull request\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., comment_id: int # The unique identifier of the comment.}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions\n@desc List reactions for a pull request review comment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., comment_id: int # The unique identifier of the comment.}\n@optional {content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # Returns a single [reaction type](https://docs.github.com/enterprise-server@3.7/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a pull request review comment., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions\n@desc Create reaction for a pull request review comment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., comment_id: int # The unique identifier of the comment., content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # The [reaction type](https://docs.github.com/enterprise-server@3.7/rest/reactions/reactions#about-reactions) to add to the pull request review comment.}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Reaction exists\n@returns(201) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Reaction created\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"content\":\"heart\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}\n@desc Delete a pull request comment reaction\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., comment_id: int # The unique identifier of the comment., reaction_id: int # The unique identifier of the reaction.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/pulls/{pull_number}\n@desc Get a pull request\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request.}\n@returns(200) {url: str(uri), id: int, node_id: str, html_url: str(uri), diff_url: str(uri), patch_url: str(uri), issue_url: str(uri), commits_url: str(uri), review_comments_url: str(uri), review_comment_url: str, comments_url: str(uri), statuses_url: str(uri), number: int, state: str, locked: bool, title: str, user: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str?, labels: [map], milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, active_lock_reason: str?, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, merged_at: str(date-time)?, merge_commit_sha: str?, assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, requested_reviewers: [map]?, requested_teams: [map]?, head: map{label: str, ref: str, repo: map?{archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), description: str?, downloads_url: str(uri), events_url: str(uri), fork: bool, forks_url: str(uri), full_name: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, hooks_url: str(uri), html_url: str(uri), id: int, node_id: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, name: str, notifications_url: str, owner: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}, private: bool, pulls_url: str, releases_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, url: str(uri), clone_url: str, default_branch: str, forks: int, forks_count: int, git_url: str, has_downloads: bool, has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_discussions: bool, homepage: str(uri)?, language: str?, master_branch: str, archived: bool, disabled: bool, visibility: str, mirror_url: str(uri)?, open_issues: int, open_issues_count: int, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, temp_clone_token: str, allow_merge_commit: bool, allow_squash_merge: bool, allow_rebase_merge: bool, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str}, pushed_at: str(date-time), size: int, ssh_url: str, stargazers_count: int, svn_url: str(uri), topics: [str], watchers: int, watchers_count: int, created_at: str(date-time), updated_at: str(date-time), allow_forking: bool, is_template: bool, web_commit_signoff_required: bool}, sha: str, user: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}}, base: map{label: str, ref: str, repo: map{archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), description: str?, downloads_url: str(uri), events_url: str(uri), fork: bool, forks_url: str(uri), full_name: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, hooks_url: str(uri), html_url: str(uri), id: int, is_template: bool, node_id: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, name: str, notifications_url: str, owner: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}, private: bool, pulls_url: str, releases_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, url: str(uri), clone_url: str, default_branch: str, forks: int, forks_count: int, git_url: str, has_downloads: bool, has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_discussions: bool, homepage: str(uri)?, language: str?, master_branch: str, archived: bool, disabled: bool, visibility: str, mirror_url: str(uri)?, open_issues: int, open_issues_count: int, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, temp_clone_token: str, allow_merge_commit: bool, allow_squash_merge: bool, allow_rebase_merge: bool, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, pushed_at: str(date-time), size: int, ssh_url: str, stargazers_count: int, svn_url: str(uri), topics: [str], watchers: int, watchers_count: int, created_at: str(date-time), updated_at: str(date-time), allow_forking: bool, web_commit_signoff_required: bool}, sha: str, user: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}}, _links: map{comments: map{href: str}, commits: map{href: str}, statuses: map{href: str}, html: map{href: str}, issue: map{href: str}, review_comments: map{href: str}, review_comment: map{href: str}, self: map{href: str}}, author_association: str, auto_merge: map?{enabled_by: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, merge_method: str, commit_title: str, commit_message: str}, draft: bool, merged: bool, mergeable: bool?, rebaseable: bool?, mergeable_state: str, merged_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, comments: int, review_comments: int, maintainer_can_modify: bool, commits: int, additions: int, deletions: int, changed_files: int} # Pass the appropriate [media type](https://docs.github.com/enterprise-server@3.7/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.\n@errors {304: Not modified, 404: Resource not found, 500: Internal Error, 503: Service unavailable}\n\n@endpoint PATCH /repos/{owner}/{repo}/pulls/{pull_number}\n@desc Update a pull request\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request.}\n@optional {title: str # The title of the pull request., body: str # The contents of the pull request., state: str(open/closed) # State of this Pull Request. Either `open` or `closed`., base: str # The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository., maintainer_can_modify: bool # Indicates whether [maintainers can modify](https://docs.github.com/enterprise-server@3.7/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.}\n@returns(200) {url: str(uri), id: int, node_id: str, html_url: str(uri), diff_url: str(uri), patch_url: str(uri), issue_url: str(uri), commits_url: str(uri), review_comments_url: str(uri), review_comment_url: str, comments_url: str(uri), statuses_url: str(uri), number: int, state: str, locked: bool, title: str, user: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str?, labels: [map], milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, active_lock_reason: str?, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, merged_at: str(date-time)?, merge_commit_sha: str?, assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, requested_reviewers: [map]?, requested_teams: [map]?, head: map{label: str, ref: str, repo: map?{archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), description: str?, downloads_url: str(uri), events_url: str(uri), fork: bool, forks_url: str(uri), full_name: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, hooks_url: str(uri), html_url: str(uri), id: int, node_id: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, name: str, notifications_url: str, owner: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}, private: bool, pulls_url: str, releases_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, url: str(uri), clone_url: str, default_branch: str, forks: int, forks_count: int, git_url: str, has_downloads: bool, has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_discussions: bool, homepage: str(uri)?, language: str?, master_branch: str, archived: bool, disabled: bool, visibility: str, mirror_url: str(uri)?, open_issues: int, open_issues_count: int, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, temp_clone_token: str, allow_merge_commit: bool, allow_squash_merge: bool, allow_rebase_merge: bool, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str}, pushed_at: str(date-time), size: int, ssh_url: str, stargazers_count: int, svn_url: str(uri), topics: [str], watchers: int, watchers_count: int, created_at: str(date-time), updated_at: str(date-time), allow_forking: bool, is_template: bool, web_commit_signoff_required: bool}, sha: str, user: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}}, base: map{label: str, ref: str, repo: map{archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), description: str?, downloads_url: str(uri), events_url: str(uri), fork: bool, forks_url: str(uri), full_name: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, hooks_url: str(uri), html_url: str(uri), id: int, is_template: bool, node_id: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, name: str, notifications_url: str, owner: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}, private: bool, pulls_url: str, releases_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, url: str(uri), clone_url: str, default_branch: str, forks: int, forks_count: int, git_url: str, has_downloads: bool, has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_discussions: bool, homepage: str(uri)?, language: str?, master_branch: str, archived: bool, disabled: bool, visibility: str, mirror_url: str(uri)?, open_issues: int, open_issues_count: int, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, temp_clone_token: str, allow_merge_commit: bool, allow_squash_merge: bool, allow_rebase_merge: bool, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, pushed_at: str(date-time), size: int, ssh_url: str, stargazers_count: int, svn_url: str(uri), topics: [str], watchers: int, watchers_count: int, created_at: str(date-time), updated_at: str(date-time), allow_forking: bool, web_commit_signoff_required: bool}, sha: str, user: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}}, _links: map{comments: map{href: str}, commits: map{href: str}, statuses: map{href: str}, html: map{href: str}, issue: map{href: str}, review_comments: map{href: str}, review_comment: map{href: str}, self: map{href: str}}, author_association: str, auto_merge: map?{enabled_by: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, merge_method: str, commit_title: str, commit_message: str}, draft: bool, merged: bool, mergeable: bool?, rebaseable: bool?, mergeable_state: str, merged_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, comments: int, review_comments: int, maintainer_can_modify: bool, commits: int, additions: int, deletions: int, changed_files: int} # Response\n@errors {403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"title\":\"new title\",\"body\":\"updated body\",\"state\":\"open\",\"base\":\"master\"}\n\n@endpoint GET /repos/{owner}/{repo}/pulls/{pull_number}/comments\n@desc List review comments on a pull request\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request.}\n@optional {sort: str(created/updated)=created # The property to sort the results by., direction: str(asc/desc) # The direction to sort results. Ignored without `sort` parameter., since: str(date-time) # Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint POST /repos/{owner}/{repo}/pulls/{pull_number}/comments\n@desc Create a review comment for a pull request\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request., body: str # The text of the review comment., commit_id: str # The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`., path: str # The relative path to the file that necessitates a comment.}\n@optional {position: int # **This parameter is deprecated. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above., side: str(LEFT/RIGHT) # In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see \"[Diff view options](https://docs.github.com/enterprise-server@3.7/articles/about-comparing-branches-in-pull-requests#diff-view-options)\" in the GitHub Help documentation., line: int # **Required unless using `subject_type:file`**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to., start_line: int # **Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see \"[Commenting on a pull request](https://docs.github.com/enterprise-server@3.7/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation., start_side: str(LEFT/RIGHT/side) # **Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see \"[Commenting on a pull request](https://docs.github.com/enterprise-server@3.7/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation. See `side` in this table for additional context., in_reply_to: int # The ID of the review comment to reply to. To find the ID of a review comment with [\"List review comments on a pull request\"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored.}\n@returns(201) {url: str, pull_request_review_id: int?, id: int, node_id: str, diff_hunk: str, path: str, position: int, original_position: int, commit_id: str, original_commit_id: str, in_reply_to_id: int, user: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, created_at: str(date-time), updated_at: str(date-time), html_url: str(uri), pull_request_url: str(uri), author_association: str, _links: map{self: map{href: str(uri)}, html: map{href: str(uri)}, pull_request: map{href: str(uri)}}, start_line: int?, original_start_line: int?, start_side: str?, line: int, original_line: int, side: str, subject_type: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}, body_html: str, body_text: str} # Response\n@errors {403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"body\":\"Great stuff!\",\"commit_id\":\"6dcb09b5b57875f334f61aebed695e2e4193db5e\",\"path\":\"file1.txt\",\"start_line\":1,\"start_side\":\"RIGHT\",\"line\":2,\"side\":\"RIGHT\"}\n\n@endpoint POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies\n@desc Create a reply for a review comment\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request., comment_id: int # The unique identifier of the comment., body: str # The text of the review comment.}\n@returns(201) {url: str, pull_request_review_id: int?, id: int, node_id: str, diff_hunk: str, path: str, position: int, original_position: int, commit_id: str, original_commit_id: str, in_reply_to_id: int, user: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, created_at: str(date-time), updated_at: str(date-time), html_url: str(uri), pull_request_url: str(uri), author_association: str, _links: map{self: map{href: str(uri)}, html: map{href: str(uri)}, pull_request: map{href: str(uri)}}, start_line: int?, original_start_line: int?, start_side: str?, line: int, original_line: int, side: str, subject_type: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}, body_html: str, body_text: str} # Response\n@errors {404: Resource not found}\n@example_request {\"body\":\"Great stuff!\"}\n\n@endpoint GET /repos/{owner}/{repo}/pulls/{pull_number}/commits\n@desc List commits on a pull request\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/pulls/{pull_number}/files\n@desc List pull requests files\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {422: Validation failed, or the endpoint has been spammed., 500: Internal Error, 503: Service unavailable}\n\n@endpoint GET /repos/{owner}/{repo}/pulls/{pull_number}/merge\n@desc Check if a pull request has been merged\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request.}\n@returns(204) Response if pull request has been merged\n@errors {404: Not Found if pull request has not been merged}\n\n@endpoint PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge\n@desc Merge a pull request\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request.}\n@optional {commit_title: str # Title for the automatic commit message., commit_message: str # Extra detail to append to automatic commit message., sha: str # SHA that pull request head must match to allow merge., merge_method: str(merge/squash/rebase) # The merge method to use.}\n@returns(200) {sha: str, merged: bool, message: str} # if merge was successful\n@errors {403: Forbidden, 404: Resource not found, 405: Method Not Allowed if merge cannot be performed, 409: Conflict if sha was provided and pull request head did not match, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"commit_title\":\"Expand enum\",\"commit_message\":\"Add a new value to the merge_method enum\"}\n\n@endpoint GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\n@desc Get all requested reviewers for a pull request\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request.}\n@returns(200) {users: [map], teams: [map]} # Response\n\n@endpoint POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\n@desc Request reviewers for a pull request\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request.}\n@optional {reviewers: [str] # An array of user `login`s that will be requested., team_reviewers: [str] # An array of team `slug`s that will be requested.}\n@returns(201) {url: str(uri), id: int, node_id: str, html_url: str(uri), diff_url: str(uri), patch_url: str(uri), issue_url: str(uri), commits_url: str(uri), review_comments_url: str(uri), review_comment_url: str, comments_url: str(uri), statuses_url: str(uri), number: int, state: str, locked: bool, title: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str?, labels: [map], milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, active_lock_reason: str?, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, merged_at: str(date-time)?, merge_commit_sha: str?, assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, requested_reviewers: [map]?, requested_teams: [map]?, head: map{label: str, ref: str, repo: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, sha: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}, base: map{label: str, ref: str, repo: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, sha: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}, _links: map{comments: map{href: str}, commits: map{href: str}, statuses: map{href: str}, html: map{href: str}, issue: map{href: str}, review_comments: map{href: str}, review_comment: map{href: str}, self: map{href: str}}, author_association: str, auto_merge: map?{enabled_by: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, merge_method: str, commit_title: str, commit_message: str}, draft: bool} # Response\n@errors {403: Forbidden, 422: Unprocessable Entity if user is not a collaborator}\n@example_request {\"reviewers\":[\"octocat\",\"hubot\",\"other_user\"],\"team_reviewers\":[\"justice-league\"]}\n\n@endpoint DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\n@desc Remove requested reviewers from a pull request\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request., reviewers: [str] # An array of user `login`s that will be removed.}\n@optional {team_reviewers: [str] # An array of team `slug`s that will be removed.}\n@returns(200) {url: str(uri), id: int, node_id: str, html_url: str(uri), diff_url: str(uri), patch_url: str(uri), issue_url: str(uri), commits_url: str(uri), review_comments_url: str(uri), review_comment_url: str, comments_url: str(uri), statuses_url: str(uri), number: int, state: str, locked: bool, title: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str?, labels: [map], milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, active_lock_reason: str?, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, merged_at: str(date-time)?, merge_commit_sha: str?, assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, requested_reviewers: [map]?, requested_teams: [map]?, head: map{label: str, ref: str, repo: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, sha: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}, base: map{label: str, ref: str, repo: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, sha: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}, _links: map{comments: map{href: str}, commits: map{href: str}, statuses: map{href: str}, html: map{href: str}, issue: map{href: str}, review_comments: map{href: str}, review_comment: map{href: str}, self: map{href: str}}, author_association: str, auto_merge: map?{enabled_by: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, merge_method: str, commit_title: str, commit_message: str}, draft: bool} # Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"reviewers\":[\"octocat\",\"hubot\",\"other_user\"],\"team_reviewers\":[\"justice-league\"]}\n\n@endpoint GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews\n@desc List reviews for a pull request\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) The list of reviews returns in chronological order.\n\n@endpoint POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews\n@desc Create a review for a pull request\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request.}\n@optional {commit_id: str # The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value., body: str # **Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review., event: str(APPROVE/REQUEST_CHANGES/COMMENT) # The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://docs.github.com/enterprise-server@3.7/rest/pulls/reviews#submit-a-review-for-a-pull-request) when you are ready., comments: [map{path!: str, position: int, body!: str, line: int, side: str, start_line: int, start_side: str}] # Use the following table to specify the location, destination, and contents of the draft review comment.}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, state: str, html_url: str(uri), pull_request_url: str(uri), _links: map{html: map{href: str}, pull_request: map{href: str}}, submitted_at: str(date-time), commit_id: str?, body_html: str, body_text: str, author_association: str} # Response\n@errors {403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"commit_id\":\"ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091\",\"body\":\"This is close to perfect! Please address the suggested inline change.\",\"event\":\"REQUEST_CHANGES\",\"comments\":[{\"path\":\"file.md\",\"position\":6,\"body\":\"Please add more information here, and fix this typo.\"}]}\n\n@endpoint GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\n@desc Get a review for a pull request\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request., review_id: int # The unique identifier of the review.}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, state: str, html_url: str(uri), pull_request_url: str(uri), _links: map{html: map{href: str}, pull_request: map{href: str}}, submitted_at: str(date-time), commit_id: str?, body_html: str, body_text: str, author_association: str} # Response\n@errors {404: Resource not found}\n\n@endpoint PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\n@desc Update a review for a pull request\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request., review_id: int # The unique identifier of the review., body: str # The body text of the pull request review.}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, state: str, html_url: str(uri), pull_request_url: str(uri), _links: map{html: map{href: str}, pull_request: map{href: str}}, submitted_at: str(date-time), commit_id: str?, body_html: str, body_text: str, author_association: str} # Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"body\":\"This is close to perfect! Please address the suggested inline change. And add more about this.\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\n@desc Delete a pending review for a pull request\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request., review_id: int # The unique identifier of the review.}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, state: str, html_url: str(uri), pull_request_url: str(uri), _links: map{html: map{href: str}, pull_request: map{href: str}}, submitted_at: str(date-time), commit_id: str?, body_html: str, body_text: str, author_association: str} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments\n@desc List comments for a pull request review\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request., review_id: int # The unique identifier of the review.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals\n@desc Dismiss a review for a pull request\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request., review_id: int # The unique identifier of the review., message: str # The message for the pull request review dismissal}\n@optional {event: str}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, state: str, html_url: str(uri), pull_request_url: str(uri), _links: map{html: map{href: str}, pull_request: map{href: str}}, submitted_at: str(date-time), commit_id: str?, body_html: str, body_text: str, author_association: str} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"message\":\"You are dismissed\",\"event\":\"DISMISS\"}\n\n@endpoint POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events\n@desc Submit a review for a pull request\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request., review_id: int # The unique identifier of the review., event: str(APPROVE/REQUEST_CHANGES/COMMENT) # The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action.}\n@optional {body: str # The body text of the pull request review}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, state: str, html_url: str(uri), pull_request_url: str(uri), _links: map{html: map{href: str}, pull_request: map{href: str}}, submitted_at: str(date-time), commit_id: str?, body_html: str, body_text: str, author_association: str} # Response\n@errors {403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"body\":\"Here is the body for the review.\",\"event\":\"REQUEST_CHANGES\"}\n\n@endpoint PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch\n@desc Update a pull request branch\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pull_number: int # The number that identifies the pull request.}\n@optional {expected_head_sha: str # The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the \"[List commits](https://docs.github.com/enterprise-server@3.7/rest/commits/commits#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.}\n@returns(202) {message: str, url: str} # Response\n@errors {403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"expected_head_sha\":\"6dcb09b5b57875f334f61aebed695e2e4193db5e\"}\n\n@endpoint GET /repos/{owner}/{repo}/readme\n@desc Get a repository README\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {ref: str # The name of the commit/branch/tag. Default: the repository’s default branch.}\n@returns(200) {type: str, encoding: str, size: int, name: str, path: str, content: str, sha: str, url: str(uri), git_url: str(uri)?, html_url: str(uri)?, download_url: str(uri)?, _links: map{git: str(uri)?, html: str(uri)?, self: str(uri)}, target: str, submodule_git_url: str} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /repos/{owner}/{repo}/readme/{dir}\n@desc Get a repository README for a directory\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., dir: str # The alternate path to look for a README file}\n@optional {ref: str # The name of the commit/branch/tag. Default: the repository’s default branch.}\n@returns(200) {type: str, encoding: str, size: int, name: str, path: str, content: str, sha: str, url: str(uri), git_url: str(uri)?, html_url: str(uri)?, download_url: str(uri)?, _links: map{git: str(uri)?, html: str(uri)?, self: str(uri)}, target: str, submodule_git_url: str} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /repos/{owner}/{repo}/releases\n@desc List releases\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/releases\n@desc Create a release\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., tag_name: str # The name of the tag.}\n@optional {target_commitish: str # Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch., name: str # The name of the release., body: str # Text describing the contents of the tag., draft: bool=false # `true` to create a draft (unpublished) release, `false` to create a published one., prerelease: bool=false # `true` to identify the release as a prerelease. `false` to identify the release as a full release., generate_release_notes: bool=false # Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes.}\n@returns(201) {url: str(uri), html_url: str(uri), assets_url: str(uri), upload_url: str, tarball_url: str(uri)?, zipball_url: str(uri)?, id: int, node_id: str, tag_name: str, target_commitish: str, name: str?, body: str?, draft: bool, prerelease: bool, created_at: str(date-time), published_at: str(date-time)?, author: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assets: [map], body_html: str, body_text: str, mentions_count: int, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"tag_name\":\"v1.0.0\",\"target_commitish\":\"master\",\"name\":\"v1.0.0\",\"body\":\"Description of the release\",\"draft\":false,\"prerelease\":false,\"generate_release_notes\":false}\n\n@endpoint GET /repos/{owner}/{repo}/releases/assets/{asset_id}\n@desc Get a release asset\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., asset_id: int # The unique identifier of the asset.}\n@returns(200) {url: str(uri), browser_download_url: str(uri), id: int, node_id: str, name: str, label: str?, state: str, content_type: str, size: int, download_count: int, created_at: str(date-time), updated_at: str(date-time), uploader: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}} # Response\n@errors {302: Found, 404: Resource not found}\n\n@endpoint PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}\n@desc Update a release asset\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., asset_id: int # The unique identifier of the asset.}\n@optional {name: str # The file name of the asset., label: str # An alternate short description of the asset. Used in place of the filename., state: str}\n@returns(200) {url: str(uri), browser_download_url: str(uri), id: int, node_id: str, name: str, label: str?, state: str, content_type: str, size: int, download_count: int, created_at: str(date-time), updated_at: str(date-time), uploader: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}} # Response\n@example_request {\"name\":\"foo-1.0.0-osx.zip\",\"label\":\"Mac binary\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}\n@desc Delete a release asset\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., asset_id: int # The unique identifier of the asset.}\n@returns(204) Response\n\n@endpoint POST /repos/{owner}/{repo}/releases/generate-notes\n@desc Generate release notes content for a release\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., tag_name: str # The tag name for the release. This can be an existing tag or a new one.}\n@optional {target_commitish: str # Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists., previous_tag_name: str # The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release., configuration_file_path: str # Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.}\n@returns(200) {name: str, body: str} # Name and body of generated release notes\n@errors {404: Resource not found}\n@example_request {\"tag_name\":\"v1.0.0\",\"target_commitish\":\"main\",\"previous_tag_name\":\"v0.9.2\",\"configuration_file_path\":\".github/custom_release_config.yml\"}\n\n@endpoint GET /repos/{owner}/{repo}/releases/latest\n@desc Get the latest release\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) {url: str(uri), html_url: str(uri), assets_url: str(uri), upload_url: str, tarball_url: str(uri)?, zipball_url: str(uri)?, id: int, node_id: str, tag_name: str, target_commitish: str, name: str?, body: str?, draft: bool, prerelease: bool, created_at: str(date-time), published_at: str(date-time)?, author: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assets: [map], body_html: str, body_text: str, mentions_count: int, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n\n@endpoint GET /repos/{owner}/{repo}/releases/tags/{tag}\n@desc Get a release by tag name\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., tag: str # tag parameter}\n@returns(200) {url: str(uri), html_url: str(uri), assets_url: str(uri), upload_url: str, tarball_url: str(uri)?, zipball_url: str(uri)?, id: int, node_id: str, tag_name: str, target_commitish: str, name: str?, body: str?, draft: bool, prerelease: bool, created_at: str(date-time), published_at: str(date-time)?, author: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assets: [map], body_html: str, body_text: str, mentions_count: int, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/releases/{release_id}\n@desc Get a release\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., release_id: int # The unique identifier of the release.}\n@returns(200) {url: str(uri), html_url: str(uri), assets_url: str(uri), upload_url: str, tarball_url: str(uri)?, zipball_url: str(uri)?, id: int, node_id: str, tag_name: str, target_commitish: str, name: str?, body: str?, draft: bool, prerelease: bool, created_at: str(date-time), published_at: str(date-time)?, author: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assets: [map], body_html: str, body_text: str, mentions_count: int, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # **Note:** This returns an `upload_url` key corresponding to the endpoint for uploading release assets. This key is a hypermedia resource. For more information, see \"[Getting started with the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia).\"\n@errors {401: Unauthorized}\n\n@endpoint PATCH /repos/{owner}/{repo}/releases/{release_id}\n@desc Update a release\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., release_id: int # The unique identifier of the release.}\n@optional {tag_name: str # The name of the tag., target_commitish: str # Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch., name: str # The name of the release., body: str # Text describing the contents of the tag., draft: bool # `true` makes the release a draft, and `false` publishes the release., prerelease: bool # `true` to identify the release as a prerelease, `false` to identify the release as a full release.}\n@returns(200) {url: str(uri), html_url: str(uri), assets_url: str(uri), upload_url: str, tarball_url: str(uri)?, zipball_url: str(uri)?, id: int, node_id: str, tag_name: str, target_commitish: str, name: str?, body: str?, draft: bool, prerelease: bool, created_at: str(date-time), published_at: str(date-time)?, author: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assets: [map], body_html: str, body_text: str, mentions_count: int, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@example_request {\"tag_name\":\"v1.0.0\",\"target_commitish\":\"master\",\"name\":\"v1.0.0\",\"body\":\"Description of the release\",\"draft\":false,\"prerelease\":false}\n\n@endpoint DELETE /repos/{owner}/{repo}/releases/{release_id}\n@desc Delete a release\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., release_id: int # The unique identifier of the release.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/releases/{release_id}/assets\n@desc List release assets\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., release_id: int # The unique identifier of the release.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint POST /repos/{owner}/{repo}/releases/{release_id}/assets\n@desc Upload a release asset\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., release_id: int # The unique identifier of the release., name: str}\n@optional {label: str}\n@returns(201) {url: str(uri), browser_download_url: str(uri), id: int, node_id: str, name: str, label: str?, state: str, content_type: str, size: int, download_count: int, created_at: str(date-time), updated_at: str(date-time), uploader: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}} # Response for successful upload\n@errors {422: Response if you upload an asset with the same filename as another uploaded asset}\n\n@endpoint GET /repos/{owner}/{repo}/releases/{release_id}/reactions\n@desc List reactions for a release\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., release_id: int # The unique identifier of the release.}\n@optional {content: str(+1/laugh/heart/hooray/rocket/eyes) # Returns a single [reaction type](https://docs.github.com/enterprise-server@3.7/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a release., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/releases/{release_id}/reactions\n@desc Create reaction for a release\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., release_id: int # The unique identifier of the release., content: str(+1/laugh/heart/hooray/rocket/eyes) # The [reaction type](https://docs.github.com/enterprise-server@3.7/rest/reactions/reactions#about-reactions) to add to the release.}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Reaction exists\n@returns(201) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Reaction created\n@errors {422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"content\":\"heart\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}\n@desc Delete a release reaction\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., release_id: int # The unique identifier of the release., reaction_id: int # The unique identifier of the reaction.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/replicas/caches\n@desc List repository cache replication status\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Status information for cache replicas\n@errors {403: Forbidden, 404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/secret-scanning/alerts\n@desc List secret scanning alerts for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {state: str(open/resolved) # Set to `open` or `resolved` to only list secret scanning alerts in a specific state., secret_type: str # A comma-separated list of secret types to return. By default all secret types are returned. See \"[Secret scanning patterns](https://docs.github.com/enterprise-server@3.7/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)\" for a complete list of secret types., resolution: str # A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`., sort: str(created/updated)=created # The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved., direction: str(asc/desc)=desc # The direction to sort the results by., page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", before: str # A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.7/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty \"before\" query string., after: str # A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.7/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events after this cursor.  To receive an initial cursor on your first request, include an empty \"after\" query string.}\n@returns(200) Response\n@errors {404: Repository is public or secret scanning is disabled for the repository, 503: Service unavailable}\n\n@endpoint GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}\n@desc Get a secret scanning alert\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., alert_number: int # The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation.}\n@returns(200) {number: int, created_at: str(date-time), updated_at: str(date-time)?, url: str(uri), html_url: str(uri), locations_url: str(uri), state: str, resolution: str?, resolved_at: str(date-time)?, resolved_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, secret_type: str, secret_type_display_name: str, secret: str, push_protection_bypassed: bool?, push_protection_bypassed_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, push_protection_bypassed_at: str(date-time)?} # Response\n@errors {304: Not modified, 404: Repository is public, or secret scanning is disabled for the repository, or the resource is not found, 503: Service unavailable}\n\n@endpoint PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}\n@desc Update a secret scanning alert\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., alert_number: int # The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation., state: str(open/resolved) # Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.}\n@optional {resolution: str(false_positive/wont_fix/revoked/used_in_tests) # **Required when the `state` is `resolved`.** The reason for resolving the alert.}\n@returns(200) {number: int, created_at: str(date-time), updated_at: str(date-time)?, url: str(uri), html_url: str(uri), locations_url: str(uri), state: str, resolution: str?, resolved_at: str(date-time)?, resolved_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, secret_type: str, secret_type_display_name: str, secret: str, push_protection_bypassed: bool?, push_protection_bypassed_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, push_protection_bypassed_at: str(date-time)?} # Response\n@errors {404: Repository is public, or secret scanning is disabled for the repository, or the resource is not found, 422: State does not match the resolution, 503: Service unavailable}\n@example_request {\"state\":\"resolved\",\"resolution\":\"false_positive\"}\n\n@endpoint GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations\n@desc List locations for a secret scanning alert\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., alert_number: int # The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation.}\n@optional {page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Repository is public, or secret scanning is disabled for the repository, or the resource is not found, 503: Service unavailable}\n\n@endpoint GET /repos/{owner}/{repo}/stargazers\n@desc List stargazers\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /repos/{owner}/{repo}/stats/code_frequency\n@desc Get the weekly commit activity\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) Returns a weekly aggregate of the number of additions and deletions pushed to a repository.\n@returns(202) Accepted\n@returns(204) A header with no content is returned.\n\n@endpoint GET /repos/{owner}/{repo}/stats/commit_activity\n@desc Get the last year of commit activity\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) Response\n@returns(202) Accepted\n@returns(204) A header with no content is returned.\n\n@endpoint GET /repos/{owner}/{repo}/stats/contributors\n@desc Get all contributor commit activity\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) Response\n@returns(202) Accepted\n@returns(204) A header with no content is returned.\n\n@endpoint GET /repos/{owner}/{repo}/stats/participation\n@desc Get the weekly commit count\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) {all: [int], owner: [int]} # The array order is oldest week (index 0) to most recent week.\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/stats/punch_card\n@desc Get the hourly commit count for each day\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) For example, `[2, 14, 25]` indicates that there were 25 total commits, during the 2:00pm hour on Tuesdays. All times are based on the time zone of individual commits.\n@returns(204) A header with no content is returned.\n\n@endpoint POST /repos/{owner}/{repo}/statuses/{sha}\n@desc Create a commit status\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., sha: str, state: str(error/failure/pending/success) # The state of the status.}\n@optional {target_url: str # The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status.   For example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA:   `http://ci.example.com/user/repo/build/sha`, description: str # A short description of the status., context: str=default # A string label to differentiate this status from the status of other systems. This field is case-insensitive.}\n@returns(201) {url: str, avatar_url: str?, id: int, node_id: str, state: str, description: str?, target_url: str?, context: str, created_at: str, updated_at: str, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}} # Response\n@example_request {\"state\":\"success\",\"target_url\":\"https://example.com/build/status\",\"description\":\"The build succeeded!\",\"context\":\"continuous-integration/jenkins\"}\n\n@endpoint GET /repos/{owner}/{repo}/subscribers\n@desc List watchers\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/subscription\n@desc Get a repository subscription\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) {subscribed: bool, ignored: bool, reason: str?, created_at: str(date-time), url: str(uri), repository_url: str(uri)} # if you subscribe to the repository\n@errors {403: Forbidden, 404: Not Found if you don't subscribe to the repository}\n\n@endpoint PUT /repos/{owner}/{repo}/subscription\n@desc Set a repository subscription\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {subscribed: bool # Determines if notifications should be received from this repository., ignored: bool # Determines if all notifications should be blocked from this repository.}\n@returns(200) {subscribed: bool, ignored: bool, reason: str?, created_at: str(date-time), url: str(uri), repository_url: str(uri)} # Response\n@example_request {\"subscribed\":true,\"ignored\":false}\n\n@endpoint DELETE /repos/{owner}/{repo}/subscription\n@desc Delete a repository subscription\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/tags\n@desc List repository tags\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/tags/protection\n@desc List tag protection states for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) Response\n@errors {403: Forbidden, 404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/tags/protection\n@desc Create a tag protection state for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., pattern: str # An optional glob pattern to match against when enforcing tag protection.}\n@returns(201) {id: int, created_at: str, updated_at: str, enabled: bool, pattern: str} # Response\n@errors {403: Forbidden, 404: Resource not found}\n@example_request {\"pattern\":\"v1.*\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}\n@desc Delete a tag protection state for a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., tag_protection_id: int # The unique identifier of the tag protection.}\n@returns(204) Response\n@errors {403: Forbidden, 404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/tarball/{ref}\n@desc Download a repository archive (tar)\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., ref: str}\n@errors {302: Response}\n\n@endpoint GET /repos/{owner}/{repo}/teams\n@desc List repository teams\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/topics\n@desc Get all repository topics\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {names: [str]} # Response\n@errors {404: Resource not found}\n\n@endpoint PUT /repos/{owner}/{repo}/topics\n@desc Replace all repository topics\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., names: [str] # An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters.}\n@returns(200) {names: [str]} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"names\":[\"octocat\",\"atom\",\"electron\",\"api\"]}\n\n@endpoint POST /repos/{owner}/{repo}/transfer\n@desc Transfer a repository\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., new_owner: str # The username or organization name the repository will be transferred to.}\n@optional {new_name: str # The new name to be given to the repository., team_ids: [int] # ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.}\n@returns(202) {id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, role_name: str, temp_clone_token: str, delete_branch_on_merge: bool, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, web_commit_signoff_required: bool} # Response\n@example_request {\"new_owner\":\"github\",\"team_ids\":[12,345],\"new_name\":\"octorepo\"}\n\n@endpoint GET /repos/{owner}/{repo}/zipball/{ref}\n@desc Download a repository archive (zip)\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive., ref: str}\n@errors {302: Response}\n\n@endpoint POST /repos/{template_owner}/{template_repo}/generate\n@desc Create a repository using a template\n@required {template_owner: str # The account owner of the template repository. The name is not case sensitive., template_repo: str # The name of the template repository without the `.git` extension. The name is not case sensitive., name: str # The name of the new repository.}\n@optional {owner: str # The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization., description: str # A short description of the new repository., include_all_branches: bool=false # Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`., private: bool=false # Either `true` to create a new private repository or `false` to create a new public one.}\n@returns(201) {id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time), created_at: str(date-time), updated_at: str(date-time), permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, temp_clone_token: str?, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_merge_commit: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, parent: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, source: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, forks: int, master_branch: str, open_issues: int, watchers: int, anonymous_access_enabled: bool, code_of_conduct: map{url: str(uri), key: str, name: str, html_url: str(uri)?}, security_and_analysis: map?{advanced_security: map{status: str}, secret_scanning: map{status: str}, secret_scanning_push_protection: map{status: str}}} # Response\n@example_request {\"owner\":\"octocat\",\"name\":\"Hello-World\",\"description\":\"This is your first repository\",\"include_all_branches\":false,\"private\":false}\n\n@endgroup\n\n@group repositories\n@endpoint GET /repositories\n@desc List public repositories\n@optional {since: int # A repository ID. Only return repositories with an ID greater than this ID., visibility: str(all/public)=public # Specifies the types of repositories to return. This endpoint will only list repositories available to all users on the enterprise.}\n@returns(200) Response\n@errors {304: Not modified, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /repositories/{repository_id}/environments/{environment_name}/secrets\n@desc List environment secrets\n@required {repository_id: int # The unique identifier of the repository., environment_name: str # The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, secrets: [map]} # Response\n\n@endpoint GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key\n@desc Get an environment public key\n@required {repository_id: int # The unique identifier of the repository., environment_name: str # The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.}\n@returns(200) {key_id: str, key: str, id: int, url: str, title: str, created_at: str} # Response\n\n@endpoint GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}\n@desc Get an environment secret\n@required {repository_id: int # The unique identifier of the repository., environment_name: str # The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`., secret_name: str # The name of the secret.}\n@returns(200) {name: str, created_at: str(date-time), updated_at: str(date-time)} # Response\n\n@endpoint PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}\n@desc Create or update an environment secret\n@required {repository_id: int # The unique identifier of the repository., environment_name: str # The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`., secret_name: str # The name of the secret., encrypted_value: str # Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/enterprise-server@3.7/rest/actions/secrets#get-an-environment-public-key) endpoint., key_id: str # ID of the key you used to encrypt the secret.}\n@returns(201) Response when creating a secret\n@returns(204) Response when updating a secret\n@example_request {\"encrypted_value\":\"c2VjcmV0\",\"key_id\":\"012345678912345678\"}\n\n@endpoint DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}\n@desc Delete an environment secret\n@required {repository_id: int # The unique identifier of the repository., environment_name: str # The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`., secret_name: str # The name of the secret.}\n@returns(204) Default response\n\n@endgroup\n\n@group scim\n@endpoint GET /scim/v2/Groups\n@desc List provisioned SCIM groups for an enterprise\n@optional {filter: str # If specified, only results that match the specified filter will be returned. Multiple filters are not supported. Possible filters are `externalId`, `id`, and `displayName`. For example, `?filter=\"externalId eq '9138790-10932-109120392-12321'\"`., excludedAttributes: str # Excludes the specified attribute from being returned in the results. Using this parameter can speed up response time., startIndex: int(int32)=1 # Used for pagination: the starting index of the first result to return when paginating through values., count: int(int32)=30 # Used for pagination: the number of results to return per page.}\n@returns(200) Success, either groups were found or not found\n@errors {400: Bad request, 401: Authorization failure, 403: Permission denied, 429: Too many requests, 500: Internal server error}\n\n@endpoint POST /scim/v2/Groups\n@desc Provision a SCIM enterprise group\n@required {schemas: [str] # The URIs that are used to indicate the namespaces of the SCIM schemas., externalId: str # A unique identifier for the resource as defined by the provisioning client., displayName: str # A human-readable name for a security group., members: [map{value!: str, displayName!: str}] # The group members.}\n@returns(201) Group has been created\n@errors {400: Bad request, 401: Authorization failure, 403: Permission denied, 409: Duplicate record detected, 429: Too many requests, 500: Internal server error}\n@example_request {\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:Group\"],\"externalId\":\"8aa1a0c0-c4c3-4bc0-b4a5-2ef676900159\",\"displayName\":\"Engineering\"}\n\n@endpoint GET /scim/v2/Groups/{scim_group_id}\n@desc Get SCIM provisioning information for an enterprise group\n@required {scim_group_id: str # A unique identifier of the SCIM group.}\n@optional {excludedAttributes: str # Excludes the specified attribute from being returned in the results. Using this parameter can speed up response time.}\n@returns(200) Success, a group was found\n@errors {400: Bad request, 401: Authorization failure, 403: Permission denied, 404: Resource not found, 429: Too many requests, 500: Internal server error}\n\n@endpoint PUT /scim/v2/Groups/{scim_group_id}\n@desc Set SCIM information for a provisioned enterprise group\n@required {scim_group_id: str # A unique identifier of the SCIM group., schemas: [str] # The URIs that are used to indicate the namespaces of the SCIM schemas., externalId: str # A unique identifier for the resource as defined by the provisioning client., displayName: str # A human-readable name for a security group., members: [map{value!: str, displayName!: str}] # The group members.}\n@returns(200) Group was updated\n@errors {400: Bad request, 401: Authorization failure, 403: Permission denied, 404: Resource not found, 409: Duplicate record detected, 429: Too many requests, 500: Internal server error}\n@example_request {\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:Group\"],\"externalId\":\"8aa1a0c0-c4c3-4bc0-b4a5-2ef676900159\",\"displayName\":\"Engineering\"}\n\n@endpoint PATCH /scim/v2/Groups/{scim_group_id}\n@desc Update an attribute for a SCIM enterprise group\n@required {scim_group_id: str # A unique identifier of the SCIM group., Operations: [map{op!: str, path: str, value: str}] # patch operations list, schemas: [str]}\n@returns(200) Success, group was updated\n@returns(204) Response\n@errors {400: Bad request, 401: Authorization failure, 403: Permission denied, 404: Resource not found, 409: Duplicate record detected, 429: Too many requests, 500: Internal server error}\n@example_request {\"schemas\":[\"urn:ietf:params:scim:api:messages:2.0:PatchOp\"],\"Operations\":[{\"op\":\"replace\",\"path\":\"displayName\",\"value\":\"Employees\"}]}\n\n@endpoint DELETE /scim/v2/Groups/{scim_group_id}\n@desc Delete a SCIM group from an enterprise\n@required {scim_group_id: str # A unique identifier of the SCIM group.}\n@returns(204) Group was deleted, no content\n@errors {400: Bad request, 401: Authorization failure, 403: Permission denied, 404: Resource not found, 429: Too many requests, 500: Internal server error}\n\n@endpoint GET /scim/v2/Users\n@desc List SCIM provisioned identities for an enterprise\n@optional {filter: str # If specified, only results that match the specified filter will be returned. Multiple filters are not supported. Possible filters are `userName`, `externalId`, `id`, and `displayName`. For example, `?filter=\"externalId eq '9138790-10932-109120392-12321'\"`., startIndex: int(int32)=1 # Used for pagination: the starting index of the first result to return when paginating through values., count: int(int32)=30 # Used for pagination: the number of results to return per page.}\n@returns(200) Success, either users were found or not found\n@errors {400: Bad request, 401: Authorization failure, 403: Permission denied, 429: Too many requests, 500: Internal server error}\n\n@endpoint POST /scim/v2/Users\n@desc Provision a SCIM enterprise user\n@required {schemas: [str] # The URIs that are used to indicate the namespaces of the SCIM schemas., externalId: str # A unique identifier for the resource as defined by the provisioning client., active: bool # Whether the user active in the IdP., userName: str # The username for the user., displayName: str # A human-readable name for the user., emails: [map{value!: str, type!: str, primary!: bool}] # The emails for the user.}\n@optional {name: map{formatted: str, familyName!: str, givenName!: str, middleName: str}, roles: [map{display: str, type: str, value!: str, primary: bool}] # The roles assigned to the user.}\n@returns(201) User has been created\n@errors {400: Bad request, 401: Authorization failure, 403: Permission denied, 409: Duplicate record detected, 429: Too many requests, 500: Internal server error}\n@example_request {\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"externalId\":\"E012345\",\"active\":true,\"userName\":\"E012345\",\"name\":{\"formatted\":\"Ms. Mona Lisa Octocat\",\"familyName\":\"Octocat\",\"givenName\":\"Mona\",\"middleName\":\"Lisa\"},\"displayName\":\"Mona Lisa\",\"emails\":[{\"value\":\"mlisa@example.com\",\"type\":\"work\",\"primary\":true}],\"roles\":[{\"value\":\"User\",\"primary\":false}]}\n\n@endpoint GET /scim/v2/Users/{scim_user_id}\n@desc Get SCIM provisioning information for an enterprise user\n@required {scim_user_id: str # The unique identifier of the SCIM user.}\n@returns(200) Success, a user was found\n@errors {400: Bad request, 401: Authorization failure, 403: Permission denied, 404: Resource not found, 429: Too many requests, 500: Internal server error}\n\n@endpoint PUT /scim/v2/Users/{scim_user_id}\n@desc Set SCIM information for a provisioned enterprise user\n@required {scim_user_id: str # The unique identifier of the SCIM user., schemas: [str] # The URIs that are used to indicate the namespaces of the SCIM schemas., externalId: str # A unique identifier for the resource as defined by the provisioning client., active: bool # Whether the user active in the IdP., userName: str # The username for the user., displayName: str # A human-readable name for the user., emails: [map{value!: str, type!: str, primary!: bool}] # The emails for the user.}\n@optional {name: map{formatted: str, familyName!: str, givenName!: str, middleName: str}, roles: [map{display: str, type: str, value!: str, primary: bool}] # The roles assigned to the user.}\n@returns(200) User was updated\n@errors {400: Bad request, 401: Authorization failure, 403: Permission denied, 404: Resource not found, 409: Duplicate record detected, 429: Too many requests, 500: Internal server error}\n@example_request {\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"externalId\":\"E012345\",\"active\":true,\"userName\":\"E012345\",\"name\":{\"formatted\":\"Ms. Mona Lisa Octocat\",\"familyName\":\"Octocat\",\"givenName\":\"Mona\",\"middleName\":\"Lisa\"},\"displayName\":\"Mona Lisa\",\"emails\":[{\"value\":\"mlisa@example.com\",\"type\":\"work\",\"primary\":true}],\"roles\":[{\"value\":\"User\",\"primary\":false}]}\n\n@endpoint PATCH /scim/v2/Users/{scim_user_id}\n@desc Update an attribute for a SCIM enterprise user\n@required {scim_user_id: str # The unique identifier of the SCIM user., Operations: [map{op!: str, path: str, value: str}] # patch operations list, schemas: [str]}\n@returns(200) Success, user was updated\n@errors {400: Bad request, 401: Authorization failure, 403: Permission denied, 404: Resource not found, 409: Duplicate record detected, 429: Too many requests, 500: Internal server error}\n@example_request {\"schemas\":[\"urn:ietf:params:scim:api:messages:2.0:PatchOp\"],\"Operations\":[{\"op\":\"replace\",\"path\":\"emails[type eq 'work'].value\",\"value\":\"updatedEmail@microsoft.com\"},{\"op\":\"replace\",\"path\":\"name.familyName\",\"value\":\"updatedFamilyName\"}]}\n\n@endpoint DELETE /scim/v2/Users/{scim_user_id}\n@desc Delete a SCIM user from an enterprise\n@required {scim_user_id: str # The unique identifier of the SCIM user.}\n@returns(204) User was deleted, no content\n@errors {400: Bad request, 401: Authorization failure, 403: Permission denied, 404: Resource not found, 429: Too many requests, 500: Internal server error}\n\n@endgroup\n\n@group search\n@endpoint GET /search/code\n@desc Search code\n@required {q: str # The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/enterprise-server@3.7/rest/search/search#constructing-a-search-query). See \"[Searching code](https://docs.github.com/enterprise-server@3.7/search-github/searching-on-github/searching-code)\" for a detailed list of qualifiers.}\n@optional {sort: str # Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure. Default: [best match](https://docs.github.com/enterprise-server@3.7/rest/search/search#ranking-search-results), order: str(desc/asc)=desc # Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, incomplete_results: bool, items: [map]} # Response\n@errors {304: Not modified, 403: Forbidden, 422: Validation failed, or the endpoint has been spammed., 503: Service unavailable}\n\n@endpoint GET /search/commits\n@desc Search commits\n@required {q: str # The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/enterprise-server@3.7/rest/search/search#constructing-a-search-query). See \"[Searching commits](https://docs.github.com/enterprise-server@3.7/search-github/searching-on-github/searching-commits)\" for a detailed list of qualifiers.}\n@optional {sort: str(author-date/committer-date) # Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://docs.github.com/enterprise-server@3.7/rest/search/search#ranking-search-results), order: str(desc/asc)=desc # Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, incomplete_results: bool, items: [map]} # Response\n@errors {304: Not modified}\n\n@endpoint GET /search/issues\n@desc Search issues and pull requests\n@required {q: str # The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/enterprise-server@3.7/rest/search/search#constructing-a-search-query). See \"[Searching issues and pull requests](https://docs.github.com/enterprise-server@3.7/search-github/searching-on-github/searching-issues-and-pull-requests)\" for a detailed list of qualifiers.}\n@optional {sort: str(comments/reactions/reactions-+1/reactions--1/reactions-smile/reactions-thinking_face/reactions-heart/reactions-tada/interactions/created/updated) # Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://docs.github.com/enterprise-server@3.7/rest/search/search#ranking-search-results), order: str(desc/asc)=desc # Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, incomplete_results: bool, items: [map]} # Response\n@errors {304: Not modified, 403: Forbidden, 422: Validation failed, or the endpoint has been spammed., 503: Service unavailable}\n\n@endpoint GET /search/labels\n@desc Search labels\n@required {repository_id: int # The id of the repository., q: str # The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/enterprise-server@3.7/rest/search/search#constructing-a-search-query).}\n@optional {sort: str(created/updated) # Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://docs.github.com/enterprise-server@3.7/rest/search/search#ranking-search-results), order: str(desc/asc)=desc # Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, incomplete_results: bool, items: [map]} # Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /search/repositories\n@desc Search repositories\n@required {q: str # The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/enterprise-server@3.7/rest/search/search#constructing-a-search-query). See \"[Searching for repositories](https://docs.github.com/enterprise-server@3.7/articles/searching-for-repositories/)\" for a detailed list of qualifiers.}\n@optional {sort: str(stars/forks/help-wanted-issues/updated) # Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://docs.github.com/enterprise-server@3.7/rest/search/search#ranking-search-results), order: str(desc/asc)=desc # Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, incomplete_results: bool, items: [map]} # Response\n@errors {304: Not modified, 422: Validation failed, or the endpoint has been spammed., 503: Service unavailable}\n\n@endpoint GET /search/topics\n@desc Search topics\n@required {q: str # The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/enterprise-server@3.7/rest/search/search#constructing-a-search-query).}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, incomplete_results: bool, items: [map]} # Response\n@errors {304: Not modified}\n\n@endpoint GET /search/users\n@desc Search users\n@required {q: str # The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/enterprise-server@3.7/rest/search/search#constructing-a-search-query). See \"[Searching users](https://docs.github.com/enterprise-server@3.7/search-github/searching-on-github/searching-users)\" for a detailed list of qualifiers.}\n@optional {sort: str(followers/repositories/joined) # Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise Server. Default: [best match](https://docs.github.com/enterprise-server@3.7/rest/search/search#ranking-search-results), order: str(desc/asc)=desc # Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, incomplete_results: bool, items: [map]} # Response\n@errors {304: Not modified, 422: Validation failed, or the endpoint has been spammed., 503: Service unavailable}\n\n@endgroup\n\n@group setup\n@endpoint GET /setup/api/configcheck\n@desc Get the configuration status\n@returns(200) {status: str, progress: [map]} # Response\n@errors {401: Unauthorized}\n\n@endpoint POST /setup/api/configure\n@desc Start a configuration process\n@returns(202) Response\n@errors {401: Unauthorized}\n\n@endpoint GET /setup/api/maintenance\n@desc Get the maintenance status\n@returns(200) {status: str, scheduled_time: str, connection_services: [map]} # Response\n@errors {401: Unauthorized}\n\n@endpoint POST /setup/api/maintenance\n@desc Enable or disable maintenance mode\n@returns(200) {status: str, scheduled_time: str, connection_services: [map]} # Response\n@errors {401: Unauthorized}\n\n@endpoint GET /setup/api/settings\n@desc Get settings\n@returns(200) {enterprise: map{private_mode: bool, public_pages: bool, subdomain_isolation: bool, signup_enabled: bool, github_hostname: str, identicons_host: str, http_proxy: str?, auth_mode: str, expire_sessions: bool, admin_password: str?, configuration_id: int, configuration_run_count: int, avatar: map{enabled: bool, uri: str}, customer: map{name: str, email: str, uuid: str, secret_key_data: str, public_key_data: str}, license: map{seats: int, evaluation: bool, perpetual: bool, unlimited_seating: bool, support_key: str, ssh_allowed: bool, cluster_support: bool, expire_at: str}, github_ssl: map{enabled: bool, cert: str?, key: str?}, ldap: map{host: str?, port: int, base: [any], uid: str?, bind_dn: str?, password: str?, method: str, search_strategy: str, user_groups: [any], admin_group: str?, virtual_attribute_enabled: bool, recursive_group_search: bool, posix_support: bool, user_sync_emails: bool, user_sync_keys: bool, user_sync_interval: int, team_sync_interval: int, sync_enabled: bool, reconciliation: map{user: str?, org: str?}, profile: map{uid: str, name: str?, mail: str?, key: str?}}, cas: map{url: str?}, saml: map{sso_url: str?, certificate: str?, certificate_path: str?, issuer: str?, idp_initiated_sso: bool, disable_admin_demote: bool}, github_oauth: map{client_id: str, client_secret: str, organization_name: str, organization_team: str}, smtp: map{enabled: bool, address: str, authentication: str, port: str, domain: str, username: str, user_name: str, enable_starttls_auto: bool, password: str, discard-to-noreply-address: bool, support_address: str, support_address_type: str, noreply_address: str}, ntp: map{primary_server: str, secondary_server: str}, timezone: str?, snmp: map{enabled: bool, community: str}, syslog: map{enabled: bool, server: str?, protocol_name: str}, assets: str?, pages: map{enabled: bool}, collectd: map{enabled: bool, server: str?, port: int, encryption: str?, username: str?, password: str?}, mapping: map{enabled: bool, tileserver: str?, basemap: str, token: str?}, load_balancer: str?}, run_list: [str]} # Response\n@errors {401: Unauthorized}\n\n@endpoint PUT /setup/api/settings\n@desc Set settings\n@returns(204) Response\n@errors {401: Unauthorized}\n\n@endpoint GET /setup/api/settings/authorized-keys\n@desc Get all authorized SSH keys\n@returns(200) Response\n@errors {401: Unauthorized}\n\n@endpoint POST /setup/api/settings/authorized-keys\n@desc Add an authorized SSH key\n@returns(201) Response\n@errors {401: Unauthorized}\n\n@endpoint DELETE /setup/api/settings/authorized-keys\n@desc Remove an authorized SSH key\n@returns(200) Response\n@errors {401: Unauthorized}\n\n@endpoint POST /setup/api/start\n@desc Create a GitHub license\n@returns(202) Response\n@errors {401: Unauthorized}\n\n@endpoint POST /setup/api/upgrade\n@desc Upgrade a license\n@returns(202) Response\n@errors {401: Unauthorized}\n\n@endgroup\n\n@group teams\n@endpoint GET /teams/{team_id}\n@desc Get a team (Legacy)\n@required {team_id: int # The unique identifier of the team.}\n@returns(200) {id: int, node_id: str, url: str(uri), html_url: str(uri), name: str, slug: str, description: str?, privacy: str, permission: str, members_url: str, repositories_url: str(uri), parent: map?{id: int, node_id: str, url: str(uri), members_url: str, name: str, description: str?, permission: str, privacy: str, html_url: str(uri), repositories_url: str(uri), slug: str, ldap_dn: str}, members_count: int, repos_count: int, created_at: str(date-time), updated_at: str(date-time), organization: map{login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?, name: str, company: str, blog: str(uri), location: str, email: str(email), twitter_username: str?, is_verified: bool, has_organization_projects: bool, has_repository_projects: bool, public_repos: int, public_gists: int, followers: int, following: int, html_url: str(uri), created_at: str(date-time), type: str, total_private_repos: int, owned_private_repos: int, private_gists: int?, disk_usage: int?, collaborators: int?, billing_email: str(email)?, plan: map{name: str, space: int, private_repos: int, filled_seats: int, seats: int}, default_repository_permission: str?, members_can_create_repositories: bool?, two_factor_requirement_enabled: bool?, members_allowed_repository_creation_type: str, members_can_create_public_repositories: bool, members_can_create_private_repositories: bool, members_can_create_internal_repositories: bool, members_can_create_pages: bool, members_can_create_public_pages: bool, members_can_create_private_pages: bool, members_can_fork_private_repositories: bool?, web_commit_signoff_required: bool, updated_at: str(date-time)}, ldap_dn: str} # Response\n@errors {404: Resource not found}\n\n@endpoint PATCH /teams/{team_id}\n@desc Update a team (Legacy)\n@required {team_id: int # The unique identifier of the team., name: str # The name of the team.}\n@optional {description: str # The description of the team., privacy: str(secret/closed) # The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are:   **For a non-nested team:**    * `secret` - only visible to organization owners and members of this team.    * `closed` - visible to all members of this organization.   **For a parent or child team:**    * `closed` - visible to all members of this organization., permission: str(pull/push/admin)=pull # **Deprecated**. The permission that new repositories will be added to the team with when none is specified., parent_team_id: int # The ID of a team to set as the parent team.}\n@returns(200) {id: int, node_id: str, url: str(uri), html_url: str(uri), name: str, slug: str, description: str?, privacy: str, permission: str, members_url: str, repositories_url: str(uri), parent: map?{id: int, node_id: str, url: str(uri), members_url: str, name: str, description: str?, permission: str, privacy: str, html_url: str(uri), repositories_url: str(uri), slug: str, ldap_dn: str}, members_count: int, repos_count: int, created_at: str(date-time), updated_at: str(date-time), organization: map{login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?, name: str, company: str, blog: str(uri), location: str, email: str(email), twitter_username: str?, is_verified: bool, has_organization_projects: bool, has_repository_projects: bool, public_repos: int, public_gists: int, followers: int, following: int, html_url: str(uri), created_at: str(date-time), type: str, total_private_repos: int, owned_private_repos: int, private_gists: int?, disk_usage: int?, collaborators: int?, billing_email: str(email)?, plan: map{name: str, space: int, private_repos: int, filled_seats: int, seats: int}, default_repository_permission: str?, members_can_create_repositories: bool?, two_factor_requirement_enabled: bool?, members_allowed_repository_creation_type: str, members_can_create_public_repositories: bool, members_can_create_private_repositories: bool, members_can_create_internal_repositories: bool, members_can_create_pages: bool, members_can_create_public_pages: bool, members_can_create_private_pages: bool, members_can_fork_private_repositories: bool?, web_commit_signoff_required: bool, updated_at: str(date-time)}, ldap_dn: str} # Response when the updated information already exists\n@returns(201) {id: int, node_id: str, url: str(uri), html_url: str(uri), name: str, slug: str, description: str?, privacy: str, permission: str, members_url: str, repositories_url: str(uri), parent: map?{id: int, node_id: str, url: str(uri), members_url: str, name: str, description: str?, permission: str, privacy: str, html_url: str(uri), repositories_url: str(uri), slug: str, ldap_dn: str}, members_count: int, repos_count: int, created_at: str(date-time), updated_at: str(date-time), organization: map{login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?, name: str, company: str, blog: str(uri), location: str, email: str(email), twitter_username: str?, is_verified: bool, has_organization_projects: bool, has_repository_projects: bool, public_repos: int, public_gists: int, followers: int, following: int, html_url: str(uri), created_at: str(date-time), type: str, total_private_repos: int, owned_private_repos: int, private_gists: int?, disk_usage: int?, collaborators: int?, billing_email: str(email)?, plan: map{name: str, space: int, private_repos: int, filled_seats: int, seats: int}, default_repository_permission: str?, members_can_create_repositories: bool?, two_factor_requirement_enabled: bool?, members_allowed_repository_creation_type: str, members_can_create_public_repositories: bool, members_can_create_private_repositories: bool, members_can_create_internal_repositories: bool, members_can_create_pages: bool, members_can_create_public_pages: bool, members_can_create_private_pages: bool, members_can_fork_private_repositories: bool?, web_commit_signoff_required: bool, updated_at: str(date-time)}, ldap_dn: str} # Response\n@errors {403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"name\":\"new team name\",\"description\":\"new team description\",\"privacy\":\"closed\"}\n\n@endpoint DELETE /teams/{team_id}\n@desc Delete a team (Legacy)\n@required {team_id: int # The unique identifier of the team.}\n@returns(204) Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /teams/{team_id}/discussions\n@desc List discussions (Legacy)\n@required {team_id: int # The unique identifier of the team.}\n@optional {direction: str(asc/desc)=desc # The direction to sort the results by., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint POST /teams/{team_id}/discussions\n@desc Create a discussion (Legacy)\n@required {team_id: int # The unique identifier of the team., title: str # The discussion post's title., body: str # The discussion post's body text.}\n@optional {private: bool=false # Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.}\n@returns(201) {author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, body_html: str, body_version: str, comments_count: int, comments_url: str(uri), created_at: str(date-time), last_edited_at: str(date-time)?, html_url: str(uri), node_id: str, number: int, pinned: bool, private: bool, team_url: str(uri), title: str, updated_at: str(date-time), url: str(uri), reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@example_request {\"title\":\"Our first team post\",\"body\":\"Hi! This is an area for us to collaborate as a team.\"}\n\n@endpoint GET /teams/{team_id}/discussions/{discussion_number}\n@desc Get a discussion (Legacy)\n@required {team_id: int # The unique identifier of the team., discussion_number: int # The number that identifies the discussion.}\n@returns(200) {author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, body_html: str, body_version: str, comments_count: int, comments_url: str(uri), created_at: str(date-time), last_edited_at: str(date-time)?, html_url: str(uri), node_id: str, number: int, pinned: bool, private: bool, team_url: str(uri), title: str, updated_at: str(date-time), url: str(uri), reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n\n@endpoint PATCH /teams/{team_id}/discussions/{discussion_number}\n@desc Update a discussion (Legacy)\n@required {team_id: int # The unique identifier of the team., discussion_number: int # The number that identifies the discussion.}\n@optional {title: str # The discussion post's title., body: str # The discussion post's body text.}\n@returns(200) {author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, body_html: str, body_version: str, comments_count: int, comments_url: str(uri), created_at: str(date-time), last_edited_at: str(date-time)?, html_url: str(uri), node_id: str, number: int, pinned: bool, private: bool, team_url: str(uri), title: str, updated_at: str(date-time), url: str(uri), reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@example_request {\"title\":\"Welcome to our first team post\"}\n\n@endpoint DELETE /teams/{team_id}/discussions/{discussion_number}\n@desc Delete a discussion (Legacy)\n@required {team_id: int # The unique identifier of the team., discussion_number: int # The number that identifies the discussion.}\n@returns(204) Response\n\n@endpoint GET /teams/{team_id}/discussions/{discussion_number}/comments\n@desc List discussion comments (Legacy)\n@required {team_id: int # The unique identifier of the team., discussion_number: int # The number that identifies the discussion.}\n@optional {direction: str(asc/desc)=desc # The direction to sort the results by., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint POST /teams/{team_id}/discussions/{discussion_number}/comments\n@desc Create a discussion comment (Legacy)\n@required {team_id: int # The unique identifier of the team., discussion_number: int # The number that identifies the discussion., body: str # The discussion comment's body text.}\n@returns(201) {author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, body_html: str, body_version: str, created_at: str(date-time), last_edited_at: str(date-time)?, discussion_url: str(uri), html_url: str(uri), node_id: str, number: int, updated_at: str(date-time), url: str(uri), reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@example_request {\"body\":\"Do you like apples?\"}\n\n@endpoint GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}\n@desc Get a discussion comment (Legacy)\n@required {team_id: int # The unique identifier of the team., discussion_number: int # The number that identifies the discussion., comment_number: int # The number that identifies the comment.}\n@returns(200) {author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, body_html: str, body_version: str, created_at: str(date-time), last_edited_at: str(date-time)?, discussion_url: str(uri), html_url: str(uri), node_id: str, number: int, updated_at: str(date-time), url: str(uri), reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n\n@endpoint PATCH /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}\n@desc Update a discussion comment (Legacy)\n@required {team_id: int # The unique identifier of the team., discussion_number: int # The number that identifies the discussion., comment_number: int # The number that identifies the comment., body: str # The discussion comment's body text.}\n@returns(200) {author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, body_html: str, body_version: str, created_at: str(date-time), last_edited_at: str(date-time)?, discussion_url: str(uri), html_url: str(uri), node_id: str, number: int, updated_at: str(date-time), url: str(uri), reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@example_request {\"body\":\"Do you like pineapples?\"}\n\n@endpoint DELETE /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}\n@desc Delete a discussion comment (Legacy)\n@required {team_id: int # The unique identifier of the team., discussion_number: int # The number that identifies the discussion., comment_number: int # The number that identifies the comment.}\n@returns(204) Response\n\n@endpoint GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions\n@desc List reactions for a team discussion comment (Legacy)\n@required {team_id: int # The unique identifier of the team., discussion_number: int # The number that identifies the discussion., comment_number: int # The number that identifies the comment.}\n@optional {content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # Returns a single [reaction type](https://docs.github.com/enterprise-server@3.7/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion comment., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint POST /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions\n@desc Create reaction for a team discussion comment (Legacy)\n@required {team_id: int # The unique identifier of the team., discussion_number: int # The number that identifies the discussion., comment_number: int # The number that identifies the comment., content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # The [reaction type](https://docs.github.com/enterprise-server@3.7/rest/reactions/reactions#about-reactions) to add to the team discussion comment.}\n@returns(201) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Response\n@example_request {\"content\":\"heart\"}\n\n@endpoint GET /teams/{team_id}/discussions/{discussion_number}/reactions\n@desc List reactions for a team discussion (Legacy)\n@required {team_id: int # The unique identifier of the team., discussion_number: int # The number that identifies the discussion.}\n@optional {content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # Returns a single [reaction type](https://docs.github.com/enterprise-server@3.7/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint POST /teams/{team_id}/discussions/{discussion_number}/reactions\n@desc Create reaction for a team discussion (Legacy)\n@required {team_id: int # The unique identifier of the team., discussion_number: int # The number that identifies the discussion., content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # The [reaction type](https://docs.github.com/enterprise-server@3.7/rest/reactions/reactions#about-reactions) to add to the team discussion.}\n@returns(201) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Response\n@example_request {\"content\":\"heart\"}\n\n@endpoint GET /teams/{team_id}/members\n@desc List team members (Legacy)\n@required {team_id: int # The unique identifier of the team.}\n@optional {role: str(member/maintainer/all)=all # Filters members returned by their role in the team., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint GET /teams/{team_id}/members/{username}\n@desc Get team member (Legacy)\n@required {team_id: int # The unique identifier of the team., username: str # The handle for the GitHub user account.}\n@returns(204) if user is a member\n@errors {404: if user is not a member}\n\n@endpoint PUT /teams/{team_id}/members/{username}\n@desc Add team member (Legacy)\n@required {team_id: int # The unique identifier of the team., username: str # The handle for the GitHub user account.}\n@returns(204) Response\n@errors {403: Forbidden, 404: Not Found if team synchronization is set up, 422: Unprocessable Entity if you attempt to add an organization to a team or you attempt to add a user to a team when they are not a member of at least one other team in the same organization}\n\n@endpoint DELETE /teams/{team_id}/members/{username}\n@desc Remove team member (Legacy)\n@required {team_id: int # The unique identifier of the team., username: str # The handle for the GitHub user account.}\n@returns(204) Response\n@errors {404: Not Found if team synchronization is setup}\n\n@endpoint GET /teams/{team_id}/memberships/{username}\n@desc Get team membership for a user (Legacy)\n@required {team_id: int # The unique identifier of the team., username: str # The handle for the GitHub user account.}\n@returns(200) {url: str(uri), role: str, state: str} # Response\n@errors {404: Resource not found}\n\n@endpoint PUT /teams/{team_id}/memberships/{username}\n@desc Add or update team membership for a user (Legacy)\n@required {team_id: int # The unique identifier of the team., username: str # The handle for the GitHub user account.}\n@optional {role: str(member/maintainer)=member # The role that this user should have in the team.}\n@returns(200) {url: str(uri), role: str, state: str} # Response\n@errors {403: Forbidden if team synchronization is set up, 404: Resource not found, 422: Unprocessable Entity if you attempt to add an organization to a team}\n@example_request {\"role\":\"member\"}\n\n@endpoint DELETE /teams/{team_id}/memberships/{username}\n@desc Remove team membership for a user (Legacy)\n@required {team_id: int # The unique identifier of the team., username: str # The handle for the GitHub user account.}\n@returns(204) Response\n@errors {403: if team synchronization is set up}\n\n@endpoint GET /teams/{team_id}/projects\n@desc List team projects (Legacy)\n@required {team_id: int # The unique identifier of the team.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint GET /teams/{team_id}/projects/{project_id}\n@desc Check team permissions for a project (Legacy)\n@required {team_id: int # The unique identifier of the team., project_id: int # The unique identifier of the project.}\n@returns(200) {owner_url: str, url: str, html_url: str, columns_url: str, id: int, node_id: str, name: str, body: str?, number: int, state: str, creator: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str, updated_at: str, organization_permission: str, private: bool, permissions: map{read: bool, write: bool, admin: bool}} # Response\n@errors {404: Not Found if project is not managed by this team}\n\n@endpoint PUT /teams/{team_id}/projects/{project_id}\n@desc Add or update team project permissions (Legacy)\n@required {team_id: int # The unique identifier of the team., project_id: int # The unique identifier of the project.}\n@optional {permission: str(read/write/admin) # The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/enterprise-server@3.7/rest/guides/getting-started-with-the-rest-api#http-method).\"}\n@returns(204) Response\n@errors {403: Forbidden if the project is not owned by the organization, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"permission\":\"read\"}\n\n@endpoint DELETE /teams/{team_id}/projects/{project_id}\n@desc Remove a project from a team (Legacy)\n@required {team_id: int # The unique identifier of the team., project_id: int # The unique identifier of the project.}\n@returns(204) Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /teams/{team_id}/repos\n@desc List team repositories (Legacy)\n@required {team_id: int # The unique identifier of the team.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint GET /teams/{team_id}/repos/{owner}/{repo}\n@desc Check team permissions for a repository (Legacy)\n@required {team_id: int # The unique identifier of the team., owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(200) {id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, role_name: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str} # Alternative response with extra repository information\n@returns(204) Response if repository is managed by this team\n@errors {404: Not Found if repository is not managed by this team}\n\n@endpoint PUT /teams/{team_id}/repos/{owner}/{repo}\n@desc Add or update team repository permissions (Legacy)\n@required {team_id: int # The unique identifier of the team., owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@optional {permission: str(pull/push/admin) # The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.}\n@returns(204) Response\n@errors {403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"permission\":\"push\"}\n\n@endpoint DELETE /teams/{team_id}/repos/{owner}/{repo}\n@desc Remove a repository from a team (Legacy)\n@required {team_id: int # The unique identifier of the team., owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(204) Response\n\n@endpoint GET /teams/{team_id}/teams\n@desc List child teams (Legacy)\n@required {team_id: int # The unique identifier of the team.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) if child teams exist\n@errors {403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endgroup\n\n@group user\n@endpoint GET /user\n@desc Get the authenticated user\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint PATCH /user\n@desc Update the authenticated user\n@optional {name: str # The new name of the user., email: str # The publicly visible email address of the user., blog: str # The new blog URL of the user., twitter_username: str # The new Twitter username of the user., company: str # The new company of the user., location: str # The new location of the user., hireable: bool # The new hiring availability of the user., bio: str # The new short biography of the user.}\n@returns(200) {login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, name: str?, company: str?, blog: str?, location: str?, email: str(email)?, hireable: bool?, bio: str?, twitter_username: str?, public_repos: int, public_gists: int, followers: int, following: int, created_at: str(date-time), updated_at: str(date-time), private_gists: int, total_private_repos: int, owned_private_repos: int, disk_usage: int, collaborators: int, two_factor_authentication: bool, plan: map{collaborators: int, name: str, space: int, private_repos: int}, suspended_at: str(date-time)?, business_plus: bool, ldap_dn: str} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"blog\":\"https://github.com/blog\",\"name\":\"monalisa octocat\"}\n\n@endpoint GET /user/emails\n@desc List email addresses for the authenticated user\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint POST /user/emails\n@desc Add an email address for the authenticated user\n@returns(201) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"emails\":[\"octocat@github.com\",\"mona@github.com\",\"octocat@octocat.org\"]}\n\n@endpoint DELETE /user/emails\n@desc Delete an email address for the authenticated user\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"emails\":[\"octocat@github.com\",\"mona@github.com\"]}\n\n@endpoint GET /user/followers\n@desc List followers of the authenticated user\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint GET /user/following\n@desc List the people the authenticated user follows\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint GET /user/following/{username}\n@desc Check if a person is followed by the authenticated user\n@required {username: str # The handle for the GitHub user account.}\n@returns(204) if the person is followed by the authenticated user\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: if the person is not followed by the authenticated user}\n\n@endpoint PUT /user/following/{username}\n@desc Follow a user\n@required {username: str # The handle for the GitHub user account.}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint DELETE /user/following/{username}\n@desc Unfollow a user\n@required {username: str # The handle for the GitHub user account.}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /user/gpg_keys\n@desc List GPG keys for the authenticated user\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint POST /user/gpg_keys\n@desc Create a GPG key for the authenticated user\n@required {armored_public_key: str # A GPG key in ASCII-armored format.}\n@optional {name: str # A descriptive name for the new key.}\n@returns(201) {id: int, name: str?, primary_key_id: int?, key_id: str, public_key: str, emails: [map], subkeys: [map], can_sign: bool, can_encrypt_comms: bool, can_encrypt_storage: bool, can_certify: bool, created_at: str(date-time), expires_at: str(date-time)?, revoked: bool, raw_key: str?} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"name\":\"Octocat's GPG Key\",\"armored_public_key\":\"-----BEGIN PGP PUBLIC KEY BLOCK-----\\nVersion: GnuPG v1\\n\\nmQINBFnZ2ZIBEADQ2Z7Z7\\n-----END PGP PUBLIC KEY BLOCK-----\"}\n\n@endpoint GET /user/gpg_keys/{gpg_key_id}\n@desc Get a GPG key for the authenticated user\n@required {gpg_key_id: int # The unique identifier of the GPG key.}\n@returns(200) {id: int, name: str?, primary_key_id: int?, key_id: str, public_key: str, emails: [map], subkeys: [map], can_sign: bool, can_encrypt_comms: bool, can_encrypt_storage: bool, can_certify: bool, created_at: str(date-time), expires_at: str(date-time)?, revoked: bool, raw_key: str?} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint DELETE /user/gpg_keys/{gpg_key_id}\n@desc Delete a GPG key for the authenticated user\n@required {gpg_key_id: int # The unique identifier of the GPG key.}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /user/installations\n@desc List app installations accessible to the user access token\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, installations: [map]} # You can find the permissions for the installation under the `permissions` key.\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint GET /user/installations/{installation_id}/repositories\n@desc List repositories accessible to the user access token\n@required {installation_id: int # The unique identifier of the installation.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) {total_count: int, repository_selection: str, repositories: [map]} # The access the user has to each repository is included in the hash under the `permissions` key.\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint PUT /user/installations/{installation_id}/repositories/{repository_id}\n@desc Add a repository to an app installation\n@required {installation_id: int # The unique identifier of the installation., repository_id: int # The unique identifier of the repository.}\n@returns(204) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint DELETE /user/installations/{installation_id}/repositories/{repository_id}\n@desc Remove a repository from an app installation\n@required {installation_id: int # The unique identifier of the installation., repository_id: int # The unique identifier of the repository.}\n@returns(204) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /user/issues\n@desc List user account issues assigned to the authenticated user\n@optional {filter: str(assigned/created/mentioned/subscribed/repos/all)=assigned # Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation., state: str(open/closed/all)=open # Indicates the state of the issues to return., labels: str # A list of comma separated label names. Example: `bug,ui,@high`, sort: str(created/updated/comments)=created # What to sort results by., direction: str(asc/desc)=desc # The direction to sort the results by., since: str(date-time) # Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 404: Resource not found}\n\n@endpoint GET /user/keys\n@desc List public SSH keys for the authenticated user\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint POST /user/keys\n@desc Create a public SSH key for the authenticated user\n@required {key: str # The public SSH key to add to your GitHub account.}\n@optional {title: str # A descriptive name for the new key.}\n@returns(201) {key: str, id: int, url: str, title: str, created_at: str(date-time), verified: bool, read_only: bool} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"title\":\"ssh-rsa AAAAB3NzaC1yc2EAAA\",\"key\":\"2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234\"}\n\n@endpoint GET /user/keys/{key_id}\n@desc Get a public SSH key for the authenticated user\n@required {key_id: int # The unique identifier of the key.}\n@returns(200) {key: str, id: int, url: str, title: str, created_at: str(date-time), verified: bool, read_only: bool} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint DELETE /user/keys/{key_id}\n@desc Delete a public SSH key for the authenticated user\n@required {key_id: int # The unique identifier of the key.}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /user/memberships/orgs\n@desc List organization memberships for the authenticated user\n@optional {state: str(active/pending) # Indicates the state of the memberships to return. If not specified, the API returns both active and pending memberships., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /user/memberships/orgs/{org}\n@desc Get an organization membership for the authenticated user\n@required {org: str # The organization name. The name is not case sensitive.}\n@returns(200) {url: str(uri), state: str, role: str, organization_url: str(uri), organization: map{login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?}, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, permissions: map{can_create_repository: bool}} # Response\n@errors {403: Forbidden, 404: Resource not found}\n\n@endpoint PATCH /user/memberships/orgs/{org}\n@desc Update an organization membership for the authenticated user\n@required {org: str # The organization name. The name is not case sensitive., state: str # The state that the membership should be in. Only `\"active\"` will be accepted.}\n@returns(200) {url: str(uri), state: str, role: str, organization_url: str(uri), organization: map{login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?}, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, permissions: map{can_create_repository: bool}} # Response\n@errors {403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"state\":\"active\"}\n\n@endpoint GET /user/migrations\n@desc List user migrations\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint POST /user/migrations\n@desc Start a user migration\n@required {repositories: [str]}\n@optional {lock_repositories: bool # Lock the repositories being migrated at the start of the migration, exclude_metadata: bool # Indicates whether metadata should be excluded and only git source should be included for the migration., exclude_git_data: bool # Indicates whether the repository git data should be excluded from the migration., exclude_attachments: bool # Do not include attachments in the migration, exclude_releases: bool # Do not include releases in the migration, exclude_owner_projects: bool # Indicates whether projects owned by the organization or users should be excluded., org_metadata_only: bool=false # Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags)., exclude: [str] # Exclude attributes from the API response to improve performance}\n@returns(201) {id: int, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, guid: str, state: str, lock_repositories: bool, exclude_metadata: bool, exclude_git_data: bool, exclude_attachments: bool, exclude_releases: bool, exclude_owner_projects: bool, org_metadata_only: bool, repositories: [map], url: str(uri), created_at: str(date-time), updated_at: str(date-time), node_id: str, archive_url: str(uri), exclude: [str]} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"repositories\":[\"octocat/Hello-World\"],\"lock_repositories\":true}\n\n@endpoint GET /user/migrations/{migration_id}/archive\n@desc Download a user migration archive\n@required {migration_id: int # The unique identifier of the migration.}\n@errors {302: Response, 304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint GET /user/migrations/{migration_id}/repositories\n@desc List repositories for a user migration\n@required {migration_id: int # The unique identifier of the migration.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint GET /user/orgs\n@desc List organizations for the authenticated user\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint POST /user/projects\n@desc Create a user project\n@required {name: str # Name of the project}\n@optional {body: str # Body of the project}\n@returns(201) {owner_url: str(uri), url: str(uri), html_url: str(uri), columns_url: str(uri), id: int, node_id: str, name: str, body: str?, number: int, state: str, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), organization_permission: str, private: bool} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"name\":\"My Projects\",\"body\":\"A board to manage my personal projects.\"}\n\n@endpoint GET /user/public_emails\n@desc List public email addresses for the authenticated user\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /user/repos\n@desc List repositories for the authenticated user\n@optional {visibility: str(all/public/private)=all # Limit results to repositories with the specified visibility., affiliation: str=owner,collaborator,organization_member # Comma-separated list of values. Can include:    * `owner`: Repositories that are owned by the authenticated user.    * `collaborator`: Repositories that the user has been added to as a collaborator.    * `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on., type: str(all/owner/public/private/member)=all # Limit results to repositories of the specified type. Will cause a `422` error if used in the same request as **visibility** or **affiliation**., sort: str(created/updated/pushed/full_name)=full_name # The property to sort the results by., direction: str(asc/desc) # The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", since: str(date-time) # Only show repositories updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., before: str(date-time) # Only show repositories updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint POST /user/repos\n@desc Create a repository for the authenticated user\n@required {name: str # The name of the repository.}\n@optional {description: str # A short description of the repository., homepage: str # A URL with more information about the repository., private: bool=false # Whether the repository is private., has_issues: bool=true # Whether issues are enabled., has_projects: bool=true # Whether projects are enabled., has_wiki: bool=true # Whether the wiki is enabled., has_discussions: bool=false # Whether discussions are enabled., team_id: int # The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization., auto_init: bool=false # Whether the repository is initialized with a minimal README., gitignore_template: str # The desired language or platform to apply to the .gitignore., license_template: str # The license keyword of the open source license for this repository., allow_squash_merge: bool=true # Whether to allow squash merges for pull requests., allow_merge_commit: bool=true # Whether to allow merge commits for pull requests., allow_rebase_merge: bool=true # Whether to allow rebase merges for pull requests., allow_auto_merge: bool=false # Whether to allow Auto-merge to be used on pull requests., delete_branch_on_merge: bool=false # Whether to delete head branches when pull requests are merged, squash_merge_commit_title: str(PR_TITLE/COMMIT_OR_PR_TITLE) # The default value for a squash merge commit title:  - `PR_TITLE` - default to the pull request's title. - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)., squash_merge_commit_message: str(PR_BODY/COMMIT_MESSAGES/BLANK) # The default value for a squash merge commit message:  - `PR_BODY` - default to the pull request's body. - `COMMIT_MESSAGES` - default to the branch's commit messages. - `BLANK` - default to a blank commit message., merge_commit_title: str(PR_TITLE/MERGE_MESSAGE) # The default value for a merge commit title.  - `PR_TITLE` - default to the pull request's title. - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)., merge_commit_message: str(PR_BODY/PR_TITLE/BLANK) # The default value for a merge commit message.  - `PR_TITLE` - default to the pull request's title. - `PR_BODY` - default to the pull request's body. - `BLANK` - default to a blank commit message., has_downloads: bool=true # Whether downloads are enabled., is_template: bool=false # Whether this repository acts as a template that can be used to generate new repositories.}\n@returns(201) {id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time), created_at: str(date-time), updated_at: str(date-time), permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, temp_clone_token: str?, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_merge_commit: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, parent: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, source: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, has_discussions: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, visibility: str, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, subscribers_count: int, network_count: int}, temp_clone_token: str, allow_squash_merge: bool, allow_auto_merge: bool, delete_branch_on_merge: bool, allow_update_branch: bool, use_squash_pr_title_as_default: bool, squash_merge_commit_title: str, squash_merge_commit_message: str, merge_commit_title: str, merge_commit_message: str, allow_merge_commit: bool, allow_forking: bool, web_commit_signoff_required: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, forks: int, master_branch: str, open_issues: int, watchers: int, anonymous_access_enabled: bool, code_of_conduct: map{url: str(uri), key: str, name: str, html_url: str(uri)?}, security_and_analysis: map?{advanced_security: map{status: str}, secret_scanning: map{status: str}, secret_scanning_push_protection: map{status: str}}} # Response\n@errors {304: Not modified, 400: Bad Request, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"name\":\"Hello-World\",\"description\":\"This is your first repo!\",\"homepage\":\"https://github.com\",\"private\":false,\"is_template\":true}\n\n@endpoint GET /user/repository_invitations\n@desc List repository invitations for the authenticated user\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint PATCH /user/repository_invitations/{invitation_id}\n@desc Accept a repository invitation\n@required {invitation_id: int # The unique identifier of the invitation.}\n@returns(204) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found, 409: Conflict}\n\n@endpoint DELETE /user/repository_invitations/{invitation_id}\n@desc Decline a repository invitation\n@required {invitation_id: int # The unique identifier of the invitation.}\n@returns(204) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found, 409: Conflict}\n\n@endpoint GET /user/ssh_signing_keys\n@desc List SSH signing keys for the authenticated user\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint POST /user/ssh_signing_keys\n@desc Create a SSH signing key for the authenticated user\n@required {key: str # The public SSH key to add to your GitHub account. For more information, see \"[Checking for existing SSH keys](https://docs.github.com/enterprise-server@3.7/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys).\"}\n@optional {title: str # A descriptive name for the new key.}\n@returns(201) {key: str, id: int, title: str, created_at: str(date-time)} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n@example_request {\"key\":\"2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234\",\"title\":\"ssh-rsa AAAAB3NzaC1yc2EAAA\"}\n\n@endpoint GET /user/ssh_signing_keys/{ssh_signing_key_id}\n@desc Get an SSH signing key for the authenticated user\n@required {ssh_signing_key_id: int # The unique identifier of the SSH signing key.}\n@returns(200) {key: str, id: int, title: str, created_at: str(date-time)} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint DELETE /user/ssh_signing_keys/{ssh_signing_key_id}\n@desc Delete an SSH signing key for the authenticated user\n@required {ssh_signing_key_id: int # The unique identifier of the SSH signing key.}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /user/starred\n@desc List repositories starred by the authenticated user\n@optional {sort: str(created/updated)=created # The property to sort the results by. `created` means when the repository was starred. `updated` means when the repository was last pushed to., direction: str(asc/desc)=desc # The direction to sort the results by., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint GET /user/starred/{owner}/{repo}\n@desc Check if a repository is starred by the authenticated user\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(204) Response if this repository is starred by you\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Not Found if this repository is not starred by you}\n\n@endpoint PUT /user/starred/{owner}/{repo}\n@desc Star a repository for the authenticated user\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint DELETE /user/starred/{owner}/{repo}\n@desc Unstar a repository for the authenticated user\n@required {owner: str # The account owner of the repository. The name is not case sensitive., repo: str # The name of the repository without the `.git` extension. The name is not case sensitive.}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /user/subscriptions\n@desc List repositories watched by the authenticated user\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint GET /user/teams\n@desc List teams for the authenticated user\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endgroup\n\n@group users\n@endpoint GET /users\n@desc List users\n@optional {since: int # A user ID. Only return users with an ID greater than this ID., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {304: Not modified}\n\n@endpoint GET /users/{username}\n@desc Get a user\n@required {username: str # The handle for the GitHub user account.}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint GET /users/{username}/events\n@desc List events for the authenticated user\n@required {username: str # The handle for the GitHub user account.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /users/{username}/events/orgs/{org}\n@desc List organization events for the authenticated user\n@required {username: str # The handle for the GitHub user account., org: str # The organization name. The name is not case sensitive.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /users/{username}/events/public\n@desc List public events for a user\n@required {username: str # The handle for the GitHub user account.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /users/{username}/followers\n@desc List followers of a user\n@required {username: str # The handle for the GitHub user account.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /users/{username}/following\n@desc List the people a user follows\n@required {username: str # The handle for the GitHub user account.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /users/{username}/following/{target_user}\n@desc Check if a user follows another user\n@required {username: str # The handle for the GitHub user account., target_user: str}\n@returns(204) if the user follows the target user\n@errors {404: if the user does not follow the target user}\n\n@endpoint GET /users/{username}/gists\n@desc List gists for a user\n@required {username: str # The handle for the GitHub user account.}\n@optional {since: str(date-time) # Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /users/{username}/gpg_keys\n@desc List GPG keys for a user\n@required {username: str # The handle for the GitHub user account.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /users/{username}/hovercard\n@desc Get contextual information for a user\n@required {username: str # The handle for the GitHub user account.}\n@optional {subject_type: str(organization/repository/issue/pull_request) # Identifies which additional information you'd like to receive about the person's hovercard. Can be `organization`, `repository`, `issue`, `pull_request`. **Required** when using `subject_id`., subject_id: str # Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`.}\n@returns(200) {contexts: [map]} # Response\n@errors {404: Resource not found, 422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /users/{username}/installation\n@desc Get a user installation for the authenticated app\n@required {username: str # The handle for the GitHub user account.}\n@returns(200) {id: int, account: any?, repository_selection: str, access_tokens_url: str(uri), repositories_url: str(uri), html_url: str(uri), app_id: int, target_id: int, target_type: str, permissions: map{actions: str, administration: str, checks: str, codespaces: str, contents: str, dependabot_secrets: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_copilot_seat_management: str, organization_events: str, organization_hooks: str, organization_personal_access_tokens: str, organization_personal_access_token_requests: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str, email_addresses: str, followers: str, git_ssh_keys: str, gpg_keys: str, interaction_limits: str, profile: str, starring: str}, events: [str], created_at: str(date-time), updated_at: str(date-time), single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], app_slug: str, suspended_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, suspended_at: str(date-time)?, contact_email: str?} # Response\n\n@endpoint GET /users/{username}/keys\n@desc List public keys for a user\n@required {username: str # The handle for the GitHub user account.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /users/{username}/orgs\n@desc List organizations for a user\n@required {username: str # The handle for the GitHub user account.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /users/{username}/projects\n@desc List user projects\n@required {username: str # The handle for the GitHub user account.}\n@optional {state: str(open/closed/all)=open # Indicates the state of the projects to return., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n@errors {422: Validation failed, or the endpoint has been spammed.}\n\n@endpoint GET /users/{username}/received_events\n@desc List events received by the authenticated user\n@required {username: str # The handle for the GitHub user account.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /users/{username}/received_events/public\n@desc List public events received by a user\n@required {username: str # The handle for the GitHub user account.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /users/{username}/repos\n@desc List repositories for a user\n@required {username: str # The handle for the GitHub user account.}\n@optional {type: str(all/owner/member)=owner # Limit results to repositories of the specified type., sort: str(created/updated/pushed/full_name)=full_name # The property to sort the results by., direction: str(asc/desc) # The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint PUT /users/{username}/site_admin\n@desc Promote a user to be a site administrator\n@required {username: str # The handle for the GitHub user account.}\n@returns(204) Response\n\n@endpoint DELETE /users/{username}/site_admin\n@desc Demote a site administrator\n@required {username: str # The handle for the GitHub user account.}\n@returns(204) Response\n\n@endpoint GET /users/{username}/ssh_signing_keys\n@desc List SSH signing keys for a user\n@required {username: str # The handle for the GitHub user account.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /users/{username}/starred\n@desc List repositories starred by a user\n@required {username: str # The handle for the GitHub user account.}\n@optional {sort: str(created/updated)=created # The property to sort the results by. `created` means when the repository was starred. `updated` means when the repository was last pushed to., direction: str(asc/desc)=desc # The direction to sort the results by., per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint GET /users/{username}/subscriptions\n@desc List repositories watched by a user\n@required {username: str # The handle for the GitHub user account.}\n@optional {per_page: int=30 # The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\", page: int=1 # The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.7/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"}\n@returns(200) Response\n\n@endpoint PUT /users/{username}/suspended\n@desc Suspend a user\n@required {username: str # The handle for the GitHub user account.}\n@optional {reason: str # The reason the user is being suspended. This message will be logged in the [audit log](https://docs.github.com/enterprise-server@3.7/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/about-the-audit-log-for-your-enterprise). If you don't provide a `reason`, it will default to \"Suspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.}\n@returns(204) Response\n@example_request {\"reason\":\"Suspended during leave of absence.\"}\n\n@endpoint DELETE /users/{username}/suspended\n@desc Unsuspend a user\n@required {username: str # The handle for the GitHub user account.}\n@optional {reason: str # The reason the user is being unsuspended. This message will be logged in the [audit log](https://docs.github.com/enterprise-server@3.7/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/about-the-audit-log-for-your-enterprise). If you don't provide a `reason`, it will default to \"Unsuspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.}\n@returns(204) Response\n@example_request {\"reason\":\"Unsuspended after leave of absence.\"}\n\n@endgroup\n\n@group zen\n@endpoint GET /zen\n@desc Get the Zen of GitHub\n@returns(200) Response\n\n@endgroup\n\n@end\n"}}