Rate this page:
Bitbucket Pipelines brings continuous delivery to Bitbucket Cloud, empowering teams with full branching to deployment visibility and faster feedback loops.
GET /2.0/repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables
Find deployment environment level variables.
NONE
string
This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example {workspace UUID}
.
string
The repository.
string
The environment.
1 2 3
curl --request GET \
--url 'https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables' \
--header 'Accept: application/json'
The retrieved deployment variables.
Content type | Value |
---|---|
application/json |
POST /2.0/repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables
Create a deployment environment level variable.
NONE
string
This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example {workspace UUID}
.
string
The repository.
string
The environment.
Content type | Value |
---|---|
application/json | allOf [object, Deployment Variable] |
1 2 3 4 5 6 7 8 9 10 11
curl --request POST \
--url 'https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"type": "<string>",
"uuid": "<string>",
"key": "<string>",
"value": "<string>",
"secured": true
}'
The variable was created.
Content type | Value |
---|---|
application/json | allOf [object, Deployment Variable] |
string
The URL of the newly created variable.
PUT /2.0/repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables/{variable_uuid}
Update a deployment environment level variable.
NONE
string
This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example {workspace UUID}
.
string
The repository.
string
The environment.
string
The UUID of the variable to update.
Content type | Value |
---|---|
application/json | allOf [object, Deployment Variable] |
1 2 3 4 5 6 7 8 9 10 11
curl --request PUT \
--url 'https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables/{variable_uuid}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"type": "<string>",
"uuid": "<string>",
"key": "<string>",
"value": "<string>",
"secured": true
}'
The deployment variable was updated.
Content type | Value |
---|---|
application/json | allOf [object, Deployment Variable] |
DELETE /2.0/repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables/{variable_uuid}
Delete a deployment environment level variable.
NONE
string
This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example {workspace UUID}
.
string
The repository.
string
The environment.
string
The UUID of the variable to delete.
1 2
curl --request DELETE \
--url 'https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables/{variable_uuid}'
The variable was deleted.
GET /2.0/repositories/{workspace}/{repo_slug}/pipelines-config/caches/
Retrieve the repository pipelines caches.
NONE
string
The account.
string
The repository.
1 2 3
curl --request GET \
--url 'https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pipelines-config/caches/' \
--header 'Accept: application/json'
The list of caches for the given repository.
Content type | Value |
---|---|
application/json |
DELETE /2.0/repositories/{workspace}/{repo_slug}/pipelines-config/caches/{cache_uuid}
Delete a repository cache.
NONE
string
The account.
string
The repository.
string
The UUID of the cache to delete.
1 2
curl --request DELETE \
--url 'https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pipelines-config/caches/{cache_uuid}'
The cache was deleted.
GET /2.0/repositories/{workspace}/{repo_slug}/pipelines-config/caches/{cache_uuid}/content-uri
Retrieve the URI of the content of the specified cache.
NONE
string
The account.
string
The repository.
string
The UUID of the cache.
1 2 3
curl --request GET \
--url 'https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pipelines-config/caches/{cache_uuid}/content-uri' \
--header 'Accept: application/json'
The cache content uri.
Content type | Value |
---|---|
application/json |
GET /2.0/repositories/{workspace}/{repo_slug}/pipelines/
Find pipelines
NONE
string
This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example {workspace UUID}
.
string
The repository.
1 2 3
curl --request GET \
--url 'https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pipelines/' \
--header 'Accept: application/json'
The matching pipelines.
Content type | Value |
---|---|
application/json |
POST /2.0/repositories/{workspace}/{repo_slug}/pipelines/
Endpoint to create and initiate a pipeline. There are a couple of different options to initiate a pipeline, where the payload of the request will determine which type of pipeline will be instantiated.