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.