curl -X POST \
https://api.bitbucket.org/2.0/repositories/username/somethingnew \
-H 'Authorization: Bearer fdafue9r1=' \
-H 'Cache-Control: no-cache' \
-H 'Postman-Token: fdafdsfdafdsa' \
-d '{
"scm": "git",
"is_private": true,
"project": {
"key": "NMH"
}
}'
Response:
{
"type": "error",
"error": {
"message": "Something went wrong",
"id": "fe1ee29d6f6f4dccac86d13acff56f1e"
}
}
Hi! Can you try creating a repo as explained in our documentation at https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D#post.
Also, can you double check that you have the right permissions to create repositories in that account?
Cheers,
Ana
Did you actually read that doc yourself? If you did, you should have noticed that I already followed the example.
I am the owner of that account and I have enabled all access possible.
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.