I am trying to create a bitbucket repository through git bash and I am suing Curl command as below:
$ curl -k -X POST -v -u username:xxxxx -H "Content-Type: application/json" \
https://bitbucket.org.local/projects/proj1/repos/repotest \
-d '{"scm": "git", "is_private": "true", "fork_policy": "no_public_forks" }'
Upon running this command, I am getting invalid credential error and the output looks like below:

My credentials are correct but I am unable to create the repository. Any help?!!