Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can you override a repo variable in bitbucket via code?

Deleted user July 8, 2022

Hi! I want to know if I can & how could I override a repository variable via code that i push there?

1 answer

1 accepted

0 votes
Answer accepted
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 10, 2022

Hi @[deleted],

Thank you for reaching out to the community.

You can override Bitbucket Cloud Pipelines repository variables via the API 2.0 endpoint below:

PUT /2.0/repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables/{variable_uuid}

You can also check this API 2.0 endpoint documentation for more information.

Hope it helps and do let me know if you have further questions.

Regards,
Mark C

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events