Protected Branches API - Admin Enforcement Updates

Today we're introducing a breaking change to the Protected Branches API preview, as we mentioned last month. With this update you'll only be able to turn on and off admin settings by passing enforce_admins.

Adjusting admin settings the old way by passing include_admins will no longer work. The only way to change your admin settings will be to pass enforce_admins. Which is now required and will return 404 responses if not included.

To access the Protected Branches API during the preview period, you'll have to provide a custom media type in the Accept header:

application/vnd.github.loki-preview+json

If you have any questions or feedback, please let us know!