Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket repo creation using REST API

Silambarasan October 20, 2021

I tried to create repo as per the documentation. I have ended up with below error. Please help me to give some insights on how to clear this issue ?

Documentation:

https://docs.atlassian.com/bitbucket-server/rest/6.10.0/bitbucket-rest.html

Refer doc Section: /rest/api/1.0/projects/{projectKey}/repos

Error:

Parameter conditions "create" not met for actual request parameters:

Input request :

curl -X POST \
https://bitbucket.myOrg.com/projects/myProject/repos/ \
-H 'Authorization: Bearer *******NzgxOp6QjEOo8QaaTQSf*******' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-d '{
"name" : "some-repo",
"scmId": "git",
"forkable": true

}'

1 answer

0 votes
Ulrich Kuhnhardt _IzymesCo_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
October 20, 2021

you'll have to use this url

{BASE_URL}/rest/api/1.0/projects/{projectKey}/repos

Hope that helps. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events