GitLab · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for GitLab REST Protected environments API
11 actions
11 updates
phrasing
extends
openapi/gitlab-protected-environments-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/projects/{id}/protected_environments'].get
$.paths['/api/v4/projects/{id}/protected_environments'].post
$.paths['/api/v4/projects/{id}/protected_environments/{name}'].get
$.paths['/api/v4/projects/{id}/protected_environments/{name}'].put
$.paths['/api/v4/projects/{id}/protected_environments/{name}'].delete
$.paths['/api/v4/groups/{id}/protected_environments'].get
$.paths['/api/v4/groups/{id}/protected_environments'].post
$.paths['/api/v4/groups/{id}/protected_environments/{name}'].get
$.paths['/api/v4/groups/{id}/protected_environments/{name}'].put
$.paths['/api/v4/groups/{id}/protected_environments/{name}'].delete
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 environments API
version: 1.0.0
extends: openapi/gitlab-protected-environments-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/projects/{id}/protected_environments'].get
update:
x-apievangelist-phrasing:
intent: List a project's protected environments
effect: read
questions:
- Which environments are protected in my project?
- Can I see the deploy access levels for each protected environment?
instructions:
- text: List protected environments in project {id}.
slots:
id: path.id
- text: Show the approval rules for protected environments in {id}.
slots:
id: path.id
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/protected_environments'].post
update:
x-apievangelist-phrasing:
intent: Protect an environment in a project
effect: write
questions:
- How do I protect a staging environment in a project?
- Can I require approvals before deploying to a project environment?
instructions:
- text: Protect environment {name} in project {id} with deploy access levels {deploy_access_levels}.
slots:
name: requestBody.name
id: path.id
deploy_access_levels: requestBody.deploy_access_levels
- text: Require {required_approval_count} approvals to deploy to {name} in {id}.
slots:
required_approval_count: requestBody.required_approval_count
name: requestBody.name
id: path.id
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/protected_environments/{name}'].get
update:
x-apievangelist-phrasing:
intent: Get a protected environment in a project
effect: read
questions:
- What deploy access levels does one protected environment in my project have?
- Can I look up a single protected environment by name?
instructions:
- text: Show protected environment {name} in project {id}.
slots:
name: path.name
id: path.id
- text: Get the approval rules for {name} in {id}.
slots:
name: path.name
id: path.id
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/protected_environments/{name}'].put
update:
x-apievangelist-phrasing:
intent: Update a protected environment in a project
effect: write
questions:
- Can I change the deploy access levels of an existing protected environment?
- How do I add approval rules to a project environment?
instructions:
- text: Set deploy access levels of {name} in project {id} to {deploy_access_levels}.
slots:
name: path.name
id: path.id
deploy_access_levels: requestBody.deploy_access_levels
- text: Update approval rules for {name} in {id} to {approval_rules}.
slots:
name: path.name
id: path.id
approval_rules: requestBody.approval_rules
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/protected_environments/{name}'].delete
update:
x-apievangelist-phrasing:
intent: Unprotect an environment in a project
effect: destructive
questions:
- How do I remove protection from a project environment?
- Can I allow anyone to deploy to an environment again?
instructions:
- text: Unprotect environment {name} in project {id}.
slots:
name: path.name
id: path.id
- text: Remove protection from {name} in {id}.
slots:
name: path.name
id: path.id
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/protected_environments'].get
update:
x-apievangelist-phrasing:
intent: List a group's protected environments
effect: read
questions:
- Which environments are protected across all projects in a group?
- Can I list protected environments for a group?
instructions:
- text: List protected environments in group {id}.
slots:
id: path.id
- text: Show deploy access levels for protected environments in {id}.
slots:
id: path.id
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/protected_environments'].post
update:
x-apievangelist-phrasing:
intent: Protect an environment for a group
effect: write
questions:
- How do I protect a deployment environment for my group?
- Which access levels can deploy to a protected environment?
instructions:
- text: Protect environment {name} in group {id} with deploy access levels {deploy_access_levels}.
slots:
name: requestBody.name
id: path.id
deploy_access_levels: requestBody.deploy_access_levels
- text: Create protected environment {name} for {id} allowing {deploy_access_levels} to deploy.
slots:
name: requestBody.name
id: path.id
deploy_access_levels: requestBody.deploy_access_levels
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/protected_environments/{name}'].get
update:
x-apievangelist-phrasing:
intent: Get a protected environment
effect: read
questions:
- What's the approval rule on a protected environment?
- Can I look up one protected environment by name?
instructions:
- text: Show protected environment {name} in group {id}.
slots:
name: path.name
id: path.id
- text: Get the approval setting of protected environment {name} for {id}.
slots:
name: path.name
id: path.id
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/protected_environments/{name}'].put
update:
x-apievangelist-phrasing:
intent: Update a protected environment
effect: write
questions:
- Can I change the deploy access levels on a protected environment?
- How do I add an approval rule to an existing protected environment?
instructions:
- text: Update protected environment {name} in {id} to allow {deploy_access_levels} to deploy.
slots:
name: path.name
id: path.id
deploy_access_levels: requestBody.deploy_access_levels
- text: Change approval rules on protected environment {name} in {id} to {approval_rules}.
slots:
name: path.name
id: path.id
approval_rules: requestBody.approval_rules
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/protected_environments/{name}'].delete
update:
x-apievangelist-phrasing:
intent: Unprotect a group environment
effect: destructive
questions:
- How do I remove protection from a group-level deployment environment?
- Can I unprotect a protected environment for a whole group by its deployment tier?
instructions:
- text: Unprotect the {name} tier environment in group {id}.
slots:
name: path.name
id: path.id
- text: Stop protecting group {id}'s {name} environment so deploys are unrestricted.
slots:
name: path.name
id: path.id
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-environments-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.