Update a protected branch in a group
One step with GitLab. We can help you get access.
Get something done
Update a protected branch in a group
with GitLab
Works with AI assistants
Use GitLab: its GitLab REST Protected branches API lets you update a protected branch in a group in a single step (PATCH /api/v4/groups/{id}/protected_branches/{name}). GitLab also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- How do I allow force pushes to a protected branch in a group?
- Can I change who can merge a protected branch in a group?
Say it to your AI assistant
- Set force pushes allowed to {allow_force_push} on {name} in group {id}.
- Update allowed pushers on {name} in group {id} to {allowed_to_push}.
For your developer
PATCH /api/v4/groups/{id}/protected_branches/{name} in GitLab REST Protected branches API. Full spec on APIs.io.