Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

rest-api for bitbucket release plugin?

I'm using bitbucket-server with under plugin for the moment.


I was able to upload new release via curl without file(can upload with uploaded file).


But I can't upload files on release.


Is there any way to upload file via curl like release-create-attach file ?

using under api

POST /rest/releases/latest/projects/PROJECT_NAME/repos/REPO_NAME/files

response on success


After success this api, the file will be on "/rest/releases/latest/projects/PROJECT_NAME/repos/REPO_NAME/files/UUID/file_name"


Below is result of using pages release create - attach file.

Request header---------------------

POST http://BITBUCKET_URL/rest/releases/latest/projects/PROJECT_NAME/repos/REPO_NAME/files HTTP/1.1
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://BITBUCKET_URL/plugins/servlet/releases/projects/PROJECT_NAME/repos/REPO_NAME/25?edit
X-Requested-With: XMLHttpRequest
Content-Type: multipart/form-data; boundary=---------------------------15979594691323621148361704183
Content-Length: 237
Connection: keep-alive
Cookie: logimage.index=0; saveLanguage=en_US.EUC-KR; @EP_LOGINID=USER_ID; _fbp=fb.1.1583411194693.916871616; _biz_uid=3d6954a1305f457a8b312388ffe6c58c; _biz_nA=13; _biz_pendingA=%5B%5D; _ga=GA1.2.1584519061.1585546446; _atl_bitbucket_remember_me=MDFhMTQxODY2ODczOTY4OWMxODA2NDJmNWUzNGFiNzgyMjI4ZThmOTozN2RlNWQzNjQyYTk4MjViNDc1ZjJlMmVhOWUyNDdhOTlkYjljMjFk; crowd.token_key=D0aoT8M4IWW9LkGIr24lfwAAAAAAFYAHc2MxMDgubGVl; BITBUCKETSESSIONID=C32F9EBDF8FB8A438DCCA895F21E566C
Pragma: no-cache
Cache-Control: no-cache

Request header---------------------


Post Data--------------------

Content-Disposition: form-data; name="file"; filename="t"
Content-Type: application/octet-stream

test steven


Post Data--------------------




0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

227 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you