Skip to main content
Creates a new pull request where the destination repository is this repository and the author is the authenticated user. The minimum required fields to create a pull request are title and source, specified by a branch name.
If the pull request’s destination is not specified, it will default to the repository.mainbranch. To open a pull request to a different branch, say from a feature branch to a staging branch, specify a destination (same format as the source):
Reviewers can be specified by adding an array of user objects as the reviewers property.
Other fields:
  • description - a string
  • close_source_branch - boolean that specifies if the source branch should be closed upon merging.
External DocumentationTo learn more, visit the Bitbucket documentation.

Parameters

Example Output