Hi!
I'm trying to create a commit using this API: Create a commit uploading file API
I need to create the commit on a specific branch because push on master is locked.
This is my request
POST /2.0/repositories/myworksp/myrepo/src?branch=chore%2Fupdate-file&message=Updated+file.yml&files=file.yml HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: multipart/form-data; boundary=--------------------------487458948671530879406796
Authorization: Bearer theT0k3n
User-Agent: axios/1.2.1
Accept-Encoding: gzip, compress, deflate, br
Host: api.bitbucket.org
Connection: close
Transfer-Encoding: chunked
As described in docs, I set `branch` query param to set branch, but the error "Push is locked on master branch" is always returned.
Do I need to set the branch name in a different way?
P.S. If I make the request in a non-restricted repo the commit is correctly created on master branch of that repo