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

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

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
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,804 views 10 16
Read article

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