GitLab Protected Branches API

The GitLab Protected Branches API provides programmatic access to manage branch protection rules. It supports listing, creating, updating, and removing protection settings that control who can push, merge, and force push to specific branches in a project.

API entry from apis.yml

apis.yml Raw ↑
aid: gitlab:apiv4protected-branches
name: GitLab Protected Branches API
tags:
- Access Control
- Protected Branches
- Source Control
image: https://kinlane-productions2.s3.amazonaws.com/apis-json/apis-json-logo.jpg
baseURL: https://gitlab.com/api/v4
humanURL: https://docs.gitlab.com/api/protected_branches/
overlays: []
properties:
- url: https://docs.gitlab.com/api/protected_branches/
  type: Documentation
- url: https://docs.gitlab.com/api/rest/authentication/
  type: Authentication
description: The GitLab Protected Branches API provides programmatic access to manage branch protection
  rules. It supports listing, creating, updating, and removing protection settings that control who can
  push, merge, and force push to specific branches in a project.