Pipelines
Create a variable for a repository
Create a repository level variable.
post/repositories/{workspace}/{repo_slug}/pipelines_config/variables
Request
- Base URLhttps://api.bitbucket.org/2.0
- URLhttps://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pipelines_config/variables
- Auth
- OAuth 2Authorization code: https://bitbucket.org/site/oauth2/authorizeToken URL: https://bitbucket.org/site/oauth2/access_token scopes: pipeline:variable
- or HTTP basic
- or API key in header Authorization
Path parameters
workspacestring required
This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example {workspace UUID}.
repo_slugstring required
The repository.
Request body
Response
The variable was created.
Changes
No recorded changes to this operation across all 15 revisions of this API.