Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to use a query parameters for branch in create a new commit on a specific branch? API Rest

alex carreño March 31, 2020

I am using /2.0/repositories/{workspace}/{repo_slug}/src for upload a file on my bitbucket, but i need execute in specific branch not only master branch. How pass Query parameter branch in http request post multipart/form-data ?

1 answer

0 votes
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 31, 2020

Hello @alex carreño ,

There's a branch parameter (see the documentation for this endpoint), so something like this shoukd work:

curl ... --data-urlencode "branch=foo-bar"

Hope this helps. Let me know if you have any questions.

Cheers,
Daniil

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events