GitHub REST API
secret_scanning_validity_checks_enabled body parameter removal on PATCH /orgs/{id}
Stopped workingSubscribe to GitHub REST APIShare
On April 21, 2026, the GitHub REST API removed support for the body parameter secret_scanning_validity_checks_enabled on the PATCH /orgs/{id} endpoint. Calls using this parameter fail since that date because the field is no longer available. Developers must update scripts and integrations that read or write this setting.
Calls it hits
PATCH /orgs/{id}body parameter secret_scanning_validity_checks_enabled
What to use instead of these calls
Use code security configurations (/orgs/{org}/code-security/configurations) and set a default configuration for new repositories.
In GitHub REST API's words
Update any scripts or integrations that read or write these fields, as they’ll no longer be available after April 21, 2026.
Facts
- API
- GitHub REST API
api.github.com - Kind
- Parameter removal
- Announced
- March 24, 2026
- Takes effect
- April 21, 2026
- Calls after that day
- Fail
- Source
- Announcement
- Last updated
- Verified
- , against GitHub REST API's own pages
Questions
When does this change take effect?
Calls to PATCH /orgs/{id}, body parameter secret_scanning_validity_checks_enabled on GitHub REST API stopped working on April 21, 2026.
What happens to calls after April 21, 2026?
They have failed since April 21, 2026.
How do I find the calls this hits in my code?
Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.
More from GitHub REST API 10
-
GET /enterprises/{id}/copilot/metricsEndpoint removal Stopped working -
GET /enterprises/{id}/team/{id}/copilot/metricsEndpoint removal Stopped working -
GET /orgs/{id}/copilot/metricsEndpoint removal Stopped working -
GET /orgs/{id}/team/{id}/copilot/metricsEndpoint removal Stopped working -
PATCH /orgs/{id}Parameter removal Stopped working -
PATCH /orgs/{id}Parameter removal Stopped working -
PATCH /orgs/{id}Parameter removal Stopped working -
PATCH /orgs/{id}Parameter removal Stopped working -
PATCH /orgs/{id}Parameter removal Stopped working -
PATCH /orgs/{id}Parameter removal Stopped working
You fixed this one by hand.
Okapi opens the pull request with the fix before the next breaking change reaches your code.