You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi Team,
I am planning to Fork a repo from existing repo in same workspace, and as I see this can be achieved with rest api 2.0. While doing as described in the documentation facing
Welcome to the community.
Based on the error message ID, it seems you can't rename the public repository because the project it's on is set as "private".
For this, you'll need to make sure your project setting is set to public.
You can check this by going to your project setting:
Also, to rename a repository, the below CURL command works for me.
curl -X PUT -u bb_username:app_password -H 'Content-Type: application/json' "https://api.bitbucket.org/2.0/repositories/workspace_id/repo_name" -d '{"name": "new_repo_name"}'
Here, you'll need to use your Bitbucket Cloud username and an App password
You can also check this documentation about it.
Hope it helps and let me know how it goes.
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.