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

Got a 500 when creating a new repo

qed September 9, 2018
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"
    }
}

 

 

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 20, 2018

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

qed September 21, 2018

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. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events