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

Error creating a new branch via REST API

Eric Boudreau May 25, 2023

Hi, 

I am able to perform some operations with our local server using the REST API via Postman, however, I am stuck trying to create a branch.

 

POST https://bitbucket.ppp.com/rest/branch-utils/latest/projects/<myproject>/repos/<myrepo>/branches
Error: Exceeded maxRedirects. Probably stuck in a redirect loop https://bitbucket.ppp.com/error400
Request Headers
Content-Typeapplication/json
Acceptapplication/json
AuthorizationBearer ####
Request Body
name: "EricB-test-via-api"
startPoint: "dd28c51928f"
Any help appreciated.

2 answers

1 accepted

0 votes
Answer accepted
Eric Boudreau May 30, 2023

It works after adding Host and Content-Length request headers

0 votes
Eric Boudreau May 25, 2023

I'm also seeing the same problem trying to create a Tag.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events