{% extends "docs/base.html" %} {% block docs_content %}
Create a new branch protection rule.
POST /api/v1/teams/{team_slug}/repos/{repo_slug}/protections POST /api/v1/users/{username}/repos/{repo_slug}/protections
Returns JSON response.