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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.