Okapi Okapi

GitHub REST API secret_scanning_enabled_for_new_repositories 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_enabled_for_new_repositories on PATCH /orgs/{id}. Calls attempting to write or read this field fail since that date. Integrations using this parameter must be updated.


Calls it hits

  • PATCH /orgs/{id}
  • body parameter secret_scanning_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.

GitHub REST API, Announcement

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_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

  1. GET /enterprises/{id}/copilot/metricsEndpoint removal Stopped working
  2. GET /enterprises/{id}/team/{id}/copilot/metricsEndpoint removal Stopped working
  3. GET /orgs/{id}/copilot/metricsEndpoint removal Stopped working
  4. GET /orgs/{id}/team/{id}/copilot/metricsEndpoint removal Stopped working
  5. PATCH /orgs/{id}Parameter removal Stopped working
  6. PATCH /orgs/{id}Parameter removal Stopped working
  7. PATCH /orgs/{id}Parameter removal Stopped working
  8. PATCH /orgs/{id}Parameter removal Stopped working
  9. PATCH /orgs/{id}Parameter removal Stopped working
  10. 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.

Add to GitHub

Get notifications

Subscribe to GitHub REST API

Hear about each breaking change GitHub REST API announces, in your feed reader, calendar or Slack.

1What to follow

Provider
  • GitHub REST API

2Where to get it

/breaking-changes/feed.xml

Paste it into Feedly, Inoreader, NetNewsWire or any reader. New changes show up as they're announced.