Missed Team ’24? Catch up on announcements here.

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

Bitbucket API error using Bearer

Marek Wasilewski January 15, 2020

Hi

 

Let me jump in :).

 

This curl works:

curl -k -u somelogin:somepasswd -d "{ \"key\": \"somekey\", \"name\": \"someproj\", \"description\": \"somedesc\" }" -H "Content-Type: application/json" https://bitbucket.whatever.com/rest/api/1.0/projects/

This doesn't

curl -k -H "Authorization: Bearer somestrangestringhere" -d "{ \"key\": \"somekey\", \"name\": \"someproj\", \"description\": \"somedesc\" }" -H "Content-Type: application/json" https://bitbucket.whatever.com/rest/api/1.0/projects/

Second one will always end with permission error. Even though I'm using a token with admin permission created on admin account. Why?

 

Regards

Marek 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events