It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Create a repository with repo display name with uppercase letters using curl

I am using " curl -X POST -v -u myaccount:passwd "" -H "Content-Type: application/json"  -d '{"has_wiki": true, "is_private": true, "project": {"key": "PRJ_KEY"}}' "

to create a new repository in my project.But this gives repo display name as repo2 and repository name also as repo2.

I know that there is possibility to use uppercase in display name.So, I need displayname as Repo2 and repo name as repo2.How to do that?Please, suggest.

1 answer

0 votes
Ana Retamal Atlassian Team Oct 19, 2017

Hi Equinox! As far as I know that won't be possible as curl is creating the repo based in the name you're giving it in the URL (the slug). At the moment, slugs only allow lowercase so it won't be possible for you to create an uppercase display name using this method. You might be interested in voting for this feature request:

Hope that helps!


Hi, thanks.I actually went through the json object for POST.You can have a display name with the filed "name":"dispalyname".But i gotta say it is quite confusing there are no proper examples.The object is little hard to understand.


" curl -X POST -v -u myaccount:passwd "" -H "Content-Type: application/json"  -d '{"has_wiki": true, "is_private": true, "project": {"key": "PRJ_KEY"}, "name": "Repo2"}' "

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Bitbucket

Contest: Share your custom Bitbucket Pipe and win

Announced in this blog, this holiday season we’re celebrating all things CI/CD and between now and the end of 2019 we’ll be showcasing content, use cases, feature announcements and more. One featur...

639 views 2 4
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you