code-scanning
Update the AI Scan setting for an organization
Changed onUpdates the AI Scan setting stored on an organization.
The organization respects the enterprise policy, so enabling is rejected when the enterprise disallows AI Scan.
OAuth app tokens and personal access tokens (classic) need the admin:org, repo, or write:org scope to use this endpoint. Organization owners can use admin:org or repo; security managers need write:org.
patch/orgs/{org}/code-scanning/ai-scan
Request
- Base URLhttps://api.github.com
- URLhttps://api.github.com/orgs/{org}/code-scanning/ai-scan
- Authnone declared
Path parameters
orgstring required
The organization name. The name is not case sensitive.
Request body
Example request
{
"pr_scan": "enabled"
}Response
Response
Example response
{
"pr_scan": "enabled"
}Changes
- info
endpoint added
- info