Hey, How can I create a tag on head of master using bitbucket Api. Please answer example.
Hey Mudassir,
If you are using Bitbucket server you can use something like
curl -k -X POST -u admin -H "Content-Type: application/json" -d '{ "name": "my-tag", "startPoint": "ae66dd8d1c85b69d527f0648314b7eabf37d2d7b", "message": "my-tag" }' <Your Bitbucket URL>/rest/api/1.0/projects/myf/repos/repo_one/tags
Replace the commit ID in "startPoint": "ae66dd8d1c85b69d527f0648314b7eabf37d2d7b" with the one you want to tag and provide appropriate tag details. Also make sure you use the correct username.
More details on REST API can be found here REST API -Tags
Regards,
Prasanth - Atlassian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.