The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I would like to modify deployment environments within a repo using the API.
The most appropriate method is:
/2.0/repositories/{workspace}/{repo_slug}/environments/{environment_uuid}/changes/
However the documentation does not specify a body to POST. How do we use this API call? Any examples what params to place after "changes"?
Worked around guessing a payload by snooping Network traffic in browser console, when performing the same action on the bitbucket UI.
API docs are not 100% complete without some of this guess work
I am having the same issue. Could you clue me in on the required parameters to include in the post body?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
nvm I found the same info in network tab
for anyone else looking try this post body with curl
`-d '{"change": {"name": "Test-42"}}`
It is still unclear to me which attributes of the deployment can be changed via the REST API. I can update the name but attempts to modify other params have given me the following error:
`{"key": "deploy-service.environment.change-not-supported", "message": "The requested change is not allowed.", "arguments": {}}`
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.