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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there any list of bitbucket pull-requests/new query parameters?

Hello, is there any list of this feature?


We already found that we can use source and dest. But it would be useful another form inputs, is there any way to configure Title and Close checkbox??

1 answer

0 votes

Hi @lukas_klima ,

I assume that you are referring to creation of pull requests via Bitbucket API?

You can configure PR title with the field title which is a string, close source branch checkbox with close_source_branch which is boolean (you can set it to true or false).

An example call would be as follows:

curl -X POST -u username:app-password<workspace-id>/<repo-slug>/pullrequests --header 'Content-Type: application/json' --data '{"title": "My PR Title ", "source": {"branch": {"name": "feature-branch"}},"destination": { "branch": {"name": "master"}},"close_source_branch":false}'

You can see more fields in the following link, in the section that gives examples (you can also set PR description and reviewers):

If you have any questions, please feel free to let me know.

Kind regards,

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Bitbucket

Contest: Share your custom Bitbucket Pipe and win

Announced in this blog, this holiday season we’re celebrating all things CI/CD and between now and the end of 2019 we’ll be showcasing content, use cases, feature announcements and more. One featur...

2,140 views 11 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you