Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Bitbucket Server Pull Request POST API Response body is wrong in documentation.


Hi, when I tried to create a Pull Request in my destination server , I got a 400 error that says author is not expected.

When I remove the author key, it successfully executed with a 201 response code. when I include the author key in my response body it always throw a 400 error. Please review the given response body in the documentation. It has a bug.

Please find the given author section from the screenshot and validate it.



Documentation Link -


1 answer

0 votes

Hi Sayantan,


The response body is what the server responds with. You need to look at the sample listed under Example request representations. 



Premier Support Engineer


Hi @Christian Glockner , I have seen the sample response body. 

But one thing I would like to address, I have getting the server response and modifying its key values in order to migrate the Pull Requests from Source server to destination server. And strangely, it worked fine and the pull request is successfully migrated. 

But the only problem is whoever is doing the migration , in the destination server the name of the pull request creator is replaced by the migrator name. 

That's why , when I am trying to pass the author key, it's says error. Then it means there's no way I can properly migrate a pull request of a repository??

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events