I am using scr POST request to upload/overwrite a file on my Bitbucket repo. This request always executes on a master branch. I would like to specify the branch name in my request. Is that something Bitbucket REST API supports?
Hi Apurva, in the Cloud REST API documentation you'll find it's possible to add the name of the branch that the new commit should be created on. You'll find it in the Query parameters section when you scroll down the page.
Hope that helps!
Ana
Thanks Ana. It works.
Glad I could help you, Apurva
api throwing an error - status code 500 ..msg- Something went wrong
Can you put an example of how you did the http post?
It looks like you're new here. Sign in or register to get started.