Troubleshooting the REST API - GitHub Docs
For example, you will get this error if you specify a parameter value as an ... The response body will include an errors property, which includes a code property ...
For example, you will get this error if you specify a parameter value as an ... The response body will include an errors property, which includes a code property ...
For an example of a request that uses headers, see Making a request. Accept. Most GitHub REST API endpoints specify that you should pass an Accept header with a ...
For example: github:new-script-format or octocat:test-branch. * **`base`** (string) Filter pulls by base branch name.# HTTP response status codes * **200** - Pass the appropriate media type to fetch diff and patch formats. * *
Validation failed, or the endpoint has been spammed. Code samples for "Update the AI Scan setting for an organization". Request example. patch ...
api.github.com/repos/OWNER/REPO/code-scanning/ai-scan ``` **Response schema (Status: 200):** Same response schema as [Get the AI Scan setting for an organization](#get-the-ai-scan-setting-for-an-organization). # # Update AI Scan enablement for a repository ``` PATCH /repos...
Handling intended error codes ; await octokit.request ; owner: "github" ; "docs", headers ; "2026-03-10", }, }); console ; `The repository is starred by me`); } ...
[!NOTE] > Most endpoints use `Authorization: Bearer ` and `Accept: application/vnd.github+json` headers, plus `X-GitHub-Api-Version: 2026-03-10`.*500** - Internal Error ### Code examples #### Example of revoking a fine-grained personal access token. *
Receiving an HTTP redirection is not an error, and you should follow the redirect. A 301 status code indicates permanent redirection. You should repeat your ...
At this time, the API does not support duplicate keys. If your content exclusion configuration contains duplicate keys, the API will return only the last occurrence of that key. For example, if duplicate entries are present, only the final value will be included in the response. ##
Sometimes, GitHub uses a 4xx status code to indicate a non-error response. If the endpoint you are using does this, you can add additional handling for specific ...
Validation failed, or the endpoint has been spammed. Code samples for "List issue events for a repository". If you access GitHub at GHE.
You can install GitHub Desktop on supported operating systems, which currently include macOS 12.0 or later and Windows 10 64-bit or later. If you have a GitHub or GitHub Enterprise account, you can connect your account to GitHub Desktop.