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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,554,392
Community Members
 
Community Events
184
Community Groups

How can we create deployment environment in Bitbucket cloud with curl command using Bitbucket API?

Edited

Actually we are kind of focusing on automating Bitbucket Repository creation and configuring the bitbucket completely with the Bitbucket API. If the API page contains some example code means it would be helpful. Like how to configure specific APIs and use them.

1 answer

1 accepted

5 votes
Answer accepted
Justin Thomas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 12, 2021

@AbhishekRsv You can use the following REST command to create a deployment environment. The endpoint is not yet documented, I have raised a ticket to add it to the public documentation.

curl 'https://api.bitbucket.org/2.0/repositories/<workspace>/<reposlug>/environments/' \
-u <username>:<password>
-H 'content-type: application/json' \
--data-raw '{"environment_type":{"name":"Test"},"name":"communities","rank":0}' \

Renan Marasigan
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!
May 02, 2023

Is there also a way to rename an existing deployment environment? Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events