I have a job in Jenkins that merges a BitBucket branch using the Bitbucket API v2.
I am receiving always a 202 status code and I am not sure when this started to happen, because some time ago it wasn't like that, I was receiving 200.
Based on the documentation, there is an optional parameter async that makes the merge in the background, returning 202 with a URL in the header to poll for the status. The documentation specifies that the parameter is false by default and I am not sending it, so I don't see why it's returning 202. But even if I send the parameter with false, I keep receiving always the 202 status code.
Is the documentation outdated and now it's always merging in background? Is that a bug that I should report somewhere?