curl POST -v -u <bitbucket-user>:<bitbucket-password> -H "Content-Type: application/json" \
"https://api.bitbucket.org/2.0/repositories/<username-or-organization>/<repo>" \
-d '{"scm": "git", "is_private": "true", "fork_policy": "no_public_forks" }'
Code language: HTML, XML (xml)
Leave a Reply