Is it possible to rename an existing repository on Bitbucket using their REST API? I read the entire documentation of the Bitbucket API, but I couldn't find anything even remotely related. I'm asking perhaps I did miss something. Thank you!
Using the Bitbucket website you can rename a repo as follows:
https://bitbucket.org/username/oldname/overview
'r'
then 'a'
for administration. Name
field.Save repository details.
Be advised that changing the name of the repo will change its URL access too. Previously the access was https://[email protected]/username/oldname.git
Now, however, the repo's URL/Path will be https://[email protected]/username/newname.git
You can check this by going back to the Overview page, and hovering over the big blue HTTPS button. The bottom of your browser will show that it now points to https://[email protected]/username/newname.git
If you are using SourceTree you can update the remote's URL by highlighting the local repo in SourceTree and then
Repository
Repository Settings...
origin https://[email protected]/username/oldname.git
Edit
URL/Path
field. Change 'oldname.git' to 'newname.git', leave the rest unchanged. So the full path should be https://[email protected]/username/newname.git
OK