Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Using API upload file in Bitbucket version Atlassian Bitbucket v5.13.0

Ankush Das December 22, 2023

I am unable to upload files to Bitbucket for the respective branch. The CURL command is working fine for Bitbucket Cloud, but I am not able to find a solution for Atlassian Bitbucket v5.13.0.

curl --location 'http://bit url/rest/branch-utils/latest/projects/test/repos/testrepo/branches' \
--header 'Authorization: Basic ODAxMTM1ODASOMETHIGx5QDLIKEyMzQ1' \
--form 'branch="MOR02"' \
--form 'message="MOR02 committed via Bamboo"' \
--form 'DevOps.txt=@"/C:/Users/Adminitrator/Downloads/DevOps.txt"'

Bit Curl API.png
Any suggestion ?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events