repositories
put/repositories/{repository}/settings/branch_protection
Headers
If-Matchstring
if provided, the branch protection rules will be updated only if the current ETag match the provided value
Request body
Example request
[
{
"pattern": "stable_*"
}
]Response
branch protection rule created successfully