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
}'
you'll have to use this url
{BASE_URL}/rest/api/1.0/projects/{projectKey}/repos
Hope that helps.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.