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

Create tag using REST api for bitbucket cloud

kellyrmilligan23 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

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 March 3, 2018

What about creating signed tags?

Like Kálmán Németh likes this
0 votes
Sagi Ben Akiva 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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events