Atlassian · Capability
Atlassian Bit Bucket Repositories API — Environments
Atlassian Bit Bucket Repositories API — Environments. 9 operations. Lead operation: Atlassian List Variables for an Environment. Self-contained Naftiko capability covering one Atlassian business surface.
What You Can Do
GET
Listvariablesforanenvironment
— Atlassian List Variables for an Environment
/v1/repositories/{workspace}/{repo-slug}/deployments-config/environments/{environment-uuid}/variables
POST
Createvariableforanenvironment
— Atlassian Create Variable for an Environment
/v1/repositories/{workspace}/{repo-slug}/deployments-config/environments/{environment-uuid}/variables
PUT
Updatevariableforanenvironment
— Atlassian Update Variable for an Environment
/v1/repositories/{workspace}/{repo-slug}/deployments-config/environments/{environment-uuid}/variables/{variable-uuid}
DELETE
Deletevariableforanenvironment
— Atlassian Delete Variable for an Environment
/v1/repositories/{workspace}/{repo-slug}/deployments-config/environments/{environment-uuid}/variables/{variable-uuid}
GET
Listenvironments
— Atlassian List Environments
/v1/repositories/{workspace}/{repo-slug}/environments
POST
Createanenvironment
— Atlassian Create an Environment
/v1/repositories/{workspace}/{repo-slug}/environments
GET
Getanenvironment
— Atlassian Get an Environment
/v1/repositories/{workspace}/{repo-slug}/environments/{environment-uuid}
DELETE
Deleteanenvironment
— Atlassian Delete an Environment
/v1/repositories/{workspace}/{repo-slug}/environments/{environment-uuid}
POST
Updateanenvironment
— Atlassian Update an Environment
/v1/repositories/{workspace}/{repo-slug}/environments/{environment-uuid}/changes
MCP Tools
atlassian-list-variables-environment
Atlassian List Variables for an Environment
read-only
idempotent
atlassian-create-variable-environment
Atlassian Create Variable for an Environment
atlassian-update-variable-environment
Atlassian Update Variable for an Environment
idempotent
atlassian-delete-variable-environment
Atlassian Delete Variable for an Environment
idempotent
atlassian-list-environments
Atlassian List Environments
read-only
idempotent
atlassian-create-environment
Atlassian Create an Environment
atlassian-get-environment
Atlassian Get an Environment
read-only
idempotent
atlassian-delete-environment
Atlassian Delete an Environment
idempotent
atlassian-update-environment
Atlassian Update an Environment
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Atlassian Bit Bucket Repositories API — Environments
description: 'Atlassian Bit Bucket Repositories API — Environments. 9 operations. Lead operation: Atlassian List Variables
for an Environment. Self-contained Naftiko capability covering one Atlassian business surface.'
tags:
- Atlassian
- Environments
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
ATLASSIAN_API_KEY: ATLASSIAN_API_KEY
capability:
consumes:
- type: http
namespace: bitbucket-repositories-environments
baseUri: https://api.bitbucket.org/2.0
description: Atlassian Bit Bucket Repositories API — Environments business capability. Self-contained, no shared references.
resources:
- name: repositories-workspace-repo_slug-deployments_config-environments-environment_uui
path: /repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables
operations:
- name: listvariablesforanenvironment
method: GET
description: Atlassian List Variables for an Environment
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: workspace
in: path
type: string
description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
`{workspace UUID}`.
required: true
- name: repo_slug
in: path
type: string
description: The repository.
required: true
- name: environment_uuid
in: path
type: string
description: The environment.
required: true
- name: createvariableforanenvironment
method: POST
description: Atlassian Create Variable for an Environment
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: workspace
in: path
type: string
description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
`{workspace UUID}`.
required: true
- name: repo_slug
in: path
type: string
description: The repository.
required: true
- name: environment_uuid
in: path
type: string
description: The environment.
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: repositories-workspace-repo_slug-deployments_config-environments-environment_uui
path: /repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables/{variable_uuid}
operations:
- name: updatevariableforanenvironment
method: PUT
description: Atlassian Update Variable for an Environment
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: workspace
in: path
type: string
description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
`{workspace UUID}`.
required: true
- name: repo_slug
in: path
type: string
description: The repository.
required: true
- name: environment_uuid
in: path
type: string
description: The environment.
required: true
- name: variable_uuid
in: path
type: string
description: The UUID of the variable to update.
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: deletevariableforanenvironment
method: DELETE
description: Atlassian Delete Variable for an Environment
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: workspace
in: path
type: string
description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
`{workspace UUID}`.
required: true
- name: repo_slug
in: path
type: string
description: The repository.
required: true
- name: environment_uuid
in: path
type: string
description: The environment.
required: true
- name: variable_uuid
in: path
type: string
description: The UUID of the variable to delete.
required: true
- name: repositories-workspace-repo_slug-environments
path: /repositories/{workspace}/{repo_slug}/environments
operations:
- name: listenvironments
method: GET
description: Atlassian List Environments
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: workspace
in: path
type: string
description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
`{workspace UUID}`.
required: true
- name: repo_slug
in: path
type: string
description: The repository.
required: true
- name: createanenvironment
method: POST
description: Atlassian Create an Environment
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: workspace
in: path
type: string
description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
`{workspace UUID}`.
required: true
- name: repo_slug
in: path
type: string
description: The repository.
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: repositories-workspace-repo_slug-environments-environment_uuid
path: /repositories/{workspace}/{repo_slug}/environments/{environment_uuid}
operations:
- name: getanenvironment
method: GET
description: Atlassian Get an Environment
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: workspace
in: path
type: string
description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
`{workspace UUID}`.
required: true
- name: repo_slug
in: path
type: string
description: The repository.
required: true
- name: environment_uuid
in: path
type: string
description: The environment UUID.
required: true
- name: deleteanenvironment
method: DELETE
description: Atlassian Delete an Environment
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: workspace
in: path
type: string
description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
`{workspace UUID}`.
required: true
- name: repo_slug
in: path
type: string
description: The repository.
required: true
- name: environment_uuid
in: path
type: string
description: The environment UUID.
required: true
- name: repositories-workspace-repo_slug-environments-environment_uuid-changes
path: /repositories/{workspace}/{repo_slug}/environments/{environment_uuid}/changes
operations:
- name: updateanenvironment
method: POST
description: Atlassian Update an Environment
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: workspace
in: path
type: string
description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
`{workspace UUID}`.
required: true
- name: repo_slug
in: path
type: string
description: The repository.
required: true
- name: environment_uuid
in: path
type: string
description: The environment UUID.
required: true
authentication:
type: bearer
token: '{{env.ATLASSIAN_API_KEY}}'
exposes:
- type: rest
namespace: bitbucket-repositories-environments-rest
port: 8080
description: REST adapter for Atlassian Bit Bucket Repositories API — Environments. One Spectral-compliant resource per
consumed operation, prefixed with /v1.
resources:
- path: /v1/repositories/{workspace}/{repo-slug}/deployments-config/environments/{environment-uuid}/variables
name: repositories-workspace-repo-slug-deployments-config-environments-environment-uui
description: REST surface for repositories-workspace-repo_slug-deployments_config-environments-environment_uui.
operations:
- method: GET
name: listvariablesforanenvironment
description: Atlassian List Variables for an Environment
call: bitbucket-repositories-environments.listvariablesforanenvironment
with:
workspace: rest.workspace
repo_slug: rest.repo_slug
environment_uuid: rest.environment_uuid
outputParameters:
- type: object
mapping: $.
- method: POST
name: createvariableforanenvironment
description: Atlassian Create Variable for an Environment
call: bitbucket-repositories-environments.createvariableforanenvironment
with:
workspace: rest.workspace
repo_slug: rest.repo_slug
environment_uuid: rest.environment_uuid
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/repositories/{workspace}/{repo-slug}/deployments-config/environments/{environment-uuid}/variables/{variable-uuid}
name: repositories-workspace-repo-slug-deployments-config-environments-environment-uui
description: REST surface for repositories-workspace-repo_slug-deployments_config-environments-environment_uui.
operations:
- method: PUT
name: updatevariableforanenvironment
description: Atlassian Update Variable for an Environment
call: bitbucket-repositories-environments.updatevariableforanenvironment
with:
workspace: rest.workspace
repo_slug: rest.repo_slug
environment_uuid: rest.environment_uuid
variable_uuid: rest.variable_uuid
body: rest.body
outputParameters:
- type: object
mapping: $.
- method: DELETE
name: deletevariableforanenvironment
description: Atlassian Delete Variable for an Environment
call: bitbucket-repositories-environments.deletevariableforanenvironment
with:
workspace: rest.workspace
repo_slug: rest.repo_slug
environment_uuid: rest.environment_uuid
variable_uuid: rest.variable_uuid
outputParameters:
- type: object
mapping: $.
- path: /v1/repositories/{workspace}/{repo-slug}/environments
name: repositories-workspace-repo-slug-environments
description: REST surface for repositories-workspace-repo_slug-environments.
operations:
- method: GET
name: listenvironments
description: Atlassian List Environments
call: bitbucket-repositories-environments.listenvironments
with:
workspace: rest.workspace
repo_slug: rest.repo_slug
outputParameters:
- type: object
mapping: $.
- method: POST
name: createanenvironment
description: Atlassian Create an Environment
call: bitbucket-repositories-environments.createanenvironment
with:
workspace: rest.workspace
repo_slug: rest.repo_slug
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/repositories/{workspace}/{repo-slug}/environments/{environment-uuid}
name: repositories-workspace-repo-slug-environments-environment-uuid
description: REST surface for repositories-workspace-repo_slug-environments-environment_uuid.
operations:
- method: GET
name: getanenvironment
description: Atlassian Get an Environment
call: bitbucket-repositories-environments.getanenvironment
with:
workspace: rest.workspace
repo_slug: rest.repo_slug
environment_uuid: rest.environment_uuid
outputParameters:
- type: object
mapping: $.
- method: DELETE
name: deleteanenvironment
description: Atlassian Delete an Environment
call: bitbucket-repositories-environments.deleteanenvironment
with:
workspace: rest.workspace
repo_slug: rest.repo_slug
environment_uuid: rest.environment_uuid
outputParameters:
- type: object
mapping: $.
- path: /v1/repositories/{workspace}/{repo-slug}/environments/{environment-uuid}/changes
name: repositories-workspace-repo-slug-environments-environment-uuid-changes
description: REST surface for repositories-workspace-repo_slug-environments-environment_uuid-changes.
operations:
- method: POST
name: updateanenvironment
description: Atlassian Update an Environment
call: bitbucket-repositories-environments.updateanenvironment
with:
workspace: rest.workspace
repo_slug: rest.repo_slug
environment_uuid: rest.environment_uuid
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: bitbucket-repositories-environments-mcp
port: 9090
transport: http
description: MCP adapter for Atlassian Bit Bucket Repositories API — Environments. One tool per consumed operation, routed
inline through this capability's consumes block.
tools:
- name: atlassian-list-variables-environment
description: Atlassian List Variables for an Environment
hints:
readOnly: true
destructive: false
idempotent: true
call: bitbucket-repositories-environments.listvariablesforanenvironment
with:
workspace: tools.workspace
repo_slug: tools.repo_slug
environment_uuid: tools.environment_uuid
outputParameters:
- type: object
mapping: $.
- name: atlassian-create-variable-environment
description: Atlassian Create Variable for an Environment
hints:
readOnly: false
destructive: false
idempotent: false
call: bitbucket-repositories-environments.createvariableforanenvironment
with:
workspace: tools.workspace
repo_slug: tools.repo_slug
environment_uuid: tools.environment_uuid
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: atlassian-update-variable-environment
description: Atlassian Update Variable for an Environment
hints:
readOnly: false
destructive: false
idempotent: true
call: bitbucket-repositories-environments.updatevariableforanenvironment
with:
workspace: tools.workspace
repo_slug: tools.repo_slug
environment_uuid: tools.environment_uuid
variable_uuid: tools.variable_uuid
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: atlassian-delete-variable-environment
description: Atlassian Delete Variable for an Environment
hints:
readOnly: false
destructive: true
idempotent: true
call: bitbucket-repositories-environments.deletevariableforanenvironment
with:
workspace: tools.workspace
repo_slug: tools.repo_slug
environment_uuid: tools.environment_uuid
variable_uuid: tools.variable_uuid
outputParameters:
- type: object
mapping: $.
- name: atlassian-list-environments
description: Atlassian List Environments
hints:
readOnly: true
destructive: false
idempotent: true
call: bitbucket-repositories-environments.listenvironments
with:
workspace: tools.workspace
repo_slug: tools.repo_slug
outputParameters:
- type: object
mapping: $.
- name: atlassian-create-environment
description: Atlassian Create an Environment
hints:
readOnly: false
destructive: false
idempotent: false
call: bitbucket-repositories-environments.createanenvironment
with:
workspace: tools.workspace
repo_slug: tools.repo_slug
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: atlassian-get-environment
description: Atlassian Get an Environment
hints:
readOnly: true
destructive: false
idempotent: true
call: bitbucket-repositories-environments.getanenvironment
with:
workspace: tools.workspace
repo_slug: tools.repo_slug
environment_uuid: tools.environment_uuid
outputParameters:
- type: object
mapping: $.
- name: atlassian-delete-environment
description: Atlassian Delete an Environment
hints:
readOnly: false
destructive: true
idempotent: true
call: bitbucket-repositories-environments.deleteanenvironment
with:
workspace: tools.workspace
repo_slug: tools.repo_slug
environment_uuid: tools.environment_uuid
outputParameters:
- type: object
mapping: $.
- name: atlassian-update-environment
description: Atlassian Update an Environment
hints:
readOnly: false
destructive: false
idempotent: false
call: bitbucket-repositories-environments.updateanenvironment
with:
workspace: tools.workspace
repo_slug: tools.repo_slug
environment_uuid: tools.environment_uuid
outputParameters:
- type: object
mapping: $.