Error when creating and then merging a pull request via the rest api

I’m creating a pull request in order to merge a release branch into the main branch. The pull request is created successfully but when I attempt the merge the pull request via the api I get the following error. I can’t find anywhere to set branch level permissions for my oath consumer.

{
“type”: “error”,
“error”: {
“message”: “newstatus: Merging a pull request requires write access to the destination branch.”,
“fields”: {
“newstatus”: [
“Merging a pull request requires write access to the destination branch.”
]
}
}
}

1 Like

I don’t know if Bitbucket works seamlessly with oauth consumers. Have you tried using a workspace user and app-password with sufficient scopes?