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

Bitbucket Cloud API - Create Pull Request call resulting in Bad Request (400)

Asif Baig September 8, 2023

I am trying to POST a request to Bitbucket Cloud API using Repository Access token used for Authorization, but getting response as Bad Request 400. Could anyone point out the issue with this attached request or the steps I could take to debug or resolve it?

bb-pr-400-error.png

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 11, 2023

Hi Asif,

I tried to reproduce this error, I believe the culprit might be the space between the uuid and the quotation mark before it. Looking at the data on the left-hand column of your screenshot:

"uuid": "
{some-uuid-value}"

The call should work if you remove the space, like this:

"uuid": "{some-uuid-value}"

However, please keep in mind that the author field is going to be ignored anyway. The author is populated based on the authentication details, so you can remove it completely from your call.

I would also suggest editing your community post and removing the screenshot, as it includes a UUID without it being masked.

Please feel free to let me know if you have any questions!

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events