Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Attempting to update deployment variables through API with a token fails.

Brian_Daniels
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 15, 2025

We are trying to update some tooling we have to set repo and deployment variables through the api to use API tokens instead of app passwords in light of their deprecation.

This works fine for repo variables, but when we try to set a deployment variable through the /deployments_config/environments/(env_uuid)/variables/ API call it returns a 403 error of 'This API is not accessible by this authentication mechanism'.

Calling the same endpoint with an app password works and updates the variable.  The token has a scope of read:pipeline:bitbucket and admin:pipeline:bitbucket.

How can we update these when authenticating using an API token?

0 answers

Suggest an answer

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

Atlassian Community Events