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.
If you have any questions or feedback, please let us know!