I want to create a pull request using REST API

Mithil Amin September 19, 2017

Can you help me to create a CURL command using that I can create a pull request with username:password or API toket(High priority for this). Suppose my base branch is "master" and I want to create a pull request with "newBranch"

1 answer

0 votes
Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 19, 2022

Hi Mithil,

There is a detailed example on this post that you might find useful:

https://community.atlassian.com/t5/Bitbucket-questions/how-to-create-bitbucket-pull-request-using-bitbucket-rest-api/qaq-p/906404

 

Regarding the authorisation for this request, Bitbucket Cloud does not have personal access tokens, but depending on what use you wanted to give them you can use App passwords or OAuth instead.

 

Caterina

 

P.S. I know it's been a while since you posted this but I still hope that this might help others and maybe even you in the future.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events