GitHub REST API
dependabot_security_updates_enabled_for_new_repositories body parameter removal on PATCH /orgs/{id}
Stopped workingSubscribe to GitHub REST APIShare
On April 21, 2026, the body parameter dependabot_security_updates_enabled_for_new_repositories was removed from PATCH /orgs/{id}. Requests using this parameter fail since that date. The change affects any scripts or integrations that write this field.
Calls it hits
PATCH /orgs/{id}body parameter dependabot_security_updates_enabled_for_new_repositories
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 dependabot_security_updates_enabled_for_new_repositories 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.