Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

API call to rename (move, delete) project on Bitbucket Server

fmalina
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!
April 18, 2017

Is there an API call to rename (move, delete) project on Bitbucket Server?

Renaming a project is a serious operation that affects CI and URLs in all child repos for all involved developers, but sometimes it has to be done. I am implementing a management interface on top of our Bitbucket server instances with approval flow specific to our organistion.

 

1 answer

0 votes
fmalina
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!
April 20, 2017

It actually quite trivial with stashy https://github.com/RisingOak/stashy

project = stash.projects[PROJECT]
project.update(new_key=NEW_PROJECT_KEY)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events