The REST API is now versioned. For more information, see "About API versioning."
REST API endpoints for branches and their settings
Use the REST API to modify branches and their protection settings.
Use the REST API to modify branches and their protection settings.