Hi Team,
I am new to Bitbucket and trying to use bitbucket api to create the repository. (This is bitbucket account is for my personal use.)
I am trying this way to create repo --
curl --user <user>:<password> -H "Content-Type: application/json" --data @input.json -X POST <Bitbucket URL>/rest/api/1.0/projects/<projectKey>/repos
1) Is this correct way?
2) Also, what is my bitbucket url? When I am in my bitbucket cloud I see the format as
https://bitbucket.org/<some hash value>/
Hi @KingDrogba and welcome to the community.
When using the API, you can use either the slug or UUID.
`workspace` can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: {workspace UUID}.
Thanks @Tyler T I tried Bastian suggestion and it worked. I appreciate for your response. I was doing with version 1.0 and that is why it was not working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As it seems that you are on cloud, I think this will be the right api call https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D#post
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.