GitLab · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for GitLab REST Protected branches API
11 actions
11 updates
phrasing
extends
openapi/gitlab-protected-branches-api-openapi.yml
Generated by API Evangelist
Written by API Evangelist tooling for GitLab's API. It is a proposal applied on top of the contract, not a document GitLab publishes.
What the actions change
x-apievangelist-phrasing
Targets 11
$.info
$.paths['/api/v4/groups/{id}/protected_branches'].get
$.paths['/api/v4/groups/{id}/protected_branches'].post
$.paths['/api/v4/groups/{id}/protected_branches/{name}'].get
$.paths['/api/v4/groups/{id}/protected_branches/{name}'].delete
$.paths['/api/v4/groups/{id}/protected_branches/{name}'].patch
$.paths['/api/v4/projects/{id}/protected_branches'].get
$.paths['/api/v4/projects/{id}/protected_branches'].post
$.paths['/api/v4/projects/{id}/protected_branches/{name}'].get
$.paths['/api/v4/projects/{id}/protected_branches/{name}'].delete
$.paths['/api/v4/projects/{id}/protected_branches/{name}'].patch
OpenAPI Overlay
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for GitLab REST Protected branches API
version: 1.0.0
extends: openapi/gitlab-protected-branches-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-23'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 10
- target: $.paths['/api/v4/groups/{id}/protected_branches'].get
update:
x-apievangelist-phrasing:
intent: List a group's protected branches
effect: read
questions:
- Which branches are protected in my GitLab group?
- Can I search a group's protected branches by name?
instructions:
- text: List protected branches in group {id}.
slots:
id: path.id
- text: Find protected branches in group {id} matching {search}.
slots:
id: path.id
search: query.search
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/protected_branches'].post
update:
x-apievangelist-phrasing:
intent: Protect a branch in a group
effect: write
questions:
- How do I protect the main branch in a group?
- Can I protect several branches at once with a wildcard?
instructions:
- text: Protect branch {name} in group {id}.
slots:
name: requestBody.name
id: path.id
- text: Protect all branches matching {name} in group {id}.
slots:
name: requestBody.name
id: path.id
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/protected_branches/{name}'].get
update:
x-apievangelist-phrasing:
intent: Get a protected branch in a group
effect: read
questions:
- What access levels protect a branch in a group?
- Can I look up one protected branch by name?
instructions:
- text: Show protected branch {name} in group {id}.
slots:
name: path.name
id: path.id
- text: Get the protection settings for {name} in group {id}.
slots:
name: path.name
id: path.id
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/protected_branches/{name}'].delete
update:
x-apievangelist-phrasing:
intent: Unprotect a branch in a group
effect: destructive
questions:
- How do I unprotect the main branch in a group?
- Can I unprotect several branches at once with a wildcard?
instructions:
- text: Unprotect branch {name} in group {id}.
slots:
name: path.name
id: path.id
- text: Remove protection from {name} in group {id}.
slots:
name: path.name
id: path.id
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/protected_branches/{name}'].patch
update:
x-apievangelist-phrasing:
intent: Update a protected branch in a group
effect: write
questions:
- 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?
instructions:
- text: Set force pushes allowed to {allow_force_push} on {name} in group {id}.
slots:
allow_force_push: requestBody.allow_force_push
name: path.name
id: path.id
- text: Update allowed pushers on {name} in group {id} to {allowed_to_push}.
slots:
name: path.name
id: path.id
allowed_to_push: requestBody.allowed_to_push
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/protected_branches'].get
update:
x-apievangelist-phrasing:
intent: List a project's protected branches
effect: read
questions:
- Which branches are protected in my project?
- Can I search a project's protected branches by name?
instructions:
- text: List protected branches in project {id}.
slots:
id: path.id
- text: Find protected branches in project {id} matching {search}.
slots:
id: path.id
search: query.search
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/protected_branches'].post
update:
x-apievangelist-phrasing:
intent: Protect a branch or wildcard
effect: write
questions:
- How do I protect the main branch so only maintainers can push?
- Can I allow specific users to push to a protected branch?
- Which access level do I use to protect a branch from force pushes?
instructions:
- text: Protect branch {name} in project {id}.
slots:
name: requestBody.name
id: path.id
- text: Protect {name} in project {id} with code owner approval required set to {code_owner_approval_required}.
slots:
name: requestBody.name
id: path.id
code_owner_approval_required: requestBody.code_owner_approval_required
- text: Allow users {allowed_to_push} to push to {name} in project {id}.
slots:
allowed_to_push: requestBody.allowed_to_push
name: requestBody.name
id: path.id
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/protected_branches/{name}'].get
update:
x-apievangelist-phrasing:
intent: Get a protected branch or wildcard
effect: read
questions:
- What access levels does a protected branch have?
- Can I check whether a wildcard protected branch allows force pushes?
instructions:
- text: Show protected branch {name} in project {id}.
slots:
name: path.name
id: path.id
- text: Get the protection settings for {name} in project {id}.
slots:
name: path.name
id: path.id
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/protected_branches/{name}'].delete
update:
x-apievangelist-phrasing:
intent: Unprotect a branch or wildcard
effect: destructive
questions:
- How do I lift branch protection on a main branch?
- Can I unprotect a wildcard protected branch?
instructions:
- text: Unprotect branch {name} in project {id}.
slots:
name: path.name
id: path.id
- text: Remove protection from {name} in project {id}.
slots:
name: path.name
id: path.id
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/protected_branches/{name}'].patch
update:
x-apievangelist-phrasing:
intent: Update a protected branch in a project
effect: write
questions:
- How do I allow force pushes to a protected branch in a project?
- Can I change who can merge a protected branch in a project?
instructions:
- text: Set force pushes allowed to {allow_force_push} on {name} in project {id}.
slots:
allow_force_push: requestBody.allow_force_push
name: path.name
id: path.id
- text: Update allowed pushers on {name} in project {id} to {allowed_to_push}.
slots:
name: path.name
id: path.id
allowed_to_push: requestBody.allowed_to_push
method: generated
generated: '2026-11-23'
Work with this as data
Every overlay here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for openapi overlays
4 MCP tools reach this
find_overlaysBrowse and filter every overlay in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/gitlab-protected-branches-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.