The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Create tag using REST api for bitbucket cloud

kellyrmilligan23
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 13, 2017

I would like to create an annotated tag in BB cloud for a repo using the rest api. is this currently possible or is it only for BB server?

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Richard Quadling
April 19, 2017

curl -X POST -u your-username:your-password -H "Content-Type: application/json" -v --trace - -d '{"name":"your-tag-name","target":{"hash":"your-hash"}}' https://api.bitbucket.org/2.0/repositories/your-team/your-repo/refs/tags

 


(Replace your-xxxx with appropriate content)

Alexander Shulgin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 3, 2018

What about creating signed tags?

Like Kálmán Németh likes this
0 votes
Sagi Ben Akiva
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 22, 2020

Can you do it when using OAth ? I would like to automate this process.

Thanks.

0 votes
Richard Quadling
April 19, 2017

See my answer below

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events