Hi
I am trying to merge a pull request using the rest api. However I am getting an error when trying this
curl -X POST -k -H 'Content-Type: application/json; charset=utf-8' -H 'Authorization: Basic <<encoded value>>' -i 'https://api.bitbucket.org/2.0/repositories/lv_digital/code-commerce/pullrequests/1309/merge' --data '{
"pullrequest_merge_parameters" : {
type: "pullrequest",
message: "Automated Commit for branch sync",
close_source_branch: true,
merge_strategy : "merge_commit"
}
}'
I always get a 400 error saying bad request. I checked the documentation and it does not really seem helpful. Any pointers as to what I might be doing wrong would be helpful
Regards
Tejas