Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

unable to create a repository using bitbucket api 2.0 with ssh

Felipe_Araya_Tobar April 9, 2020

Hello, 

I have a problem when trying to create a repository inside a project in bitbucket cloud, when executing the command it gives me the following result:
Command used: curl -s -X POST -v -u user: pass https://api.bitbucket.org/2.0/repositories/user_account/test1 -H "Content-Type: application / json" -d '{"scm ":" git "," is_private ": true," project ": {" key ":" LEG "}} '

{"type": "error", "error": {"message": "To make a call, you need to use an app password."}}

before the message, it asked me to create the validation by second factor:


{"type": "error", "error": {"message": "To access this settings, enable two-step verification."}}

Any idea how to create via ssh without this validation in between?

Thank you very much for your time and help.

1 answer

1 accepted

1 vote
Answer accepted
Edwin Kyalangalilwa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 9, 2020

Hi @Felipe_Araya_Tobar ,

Passwords are deprecated when making API requests. You'll have to create and use App passwords 

Felipe_Araya_Tobar April 9, 2020

your answer save me the day!!! Thank you! Have a nice Weekend!! 

Like Edwin Kyalangalilwa likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events