I was following the API docs https://docs.atlassian.com/bitbucket-server/rest/6.10.0/bitbucket-rest.html?_ga=2.33858657.1166200213.1595259633-444055661.1594387875#idp347. but it seems that is not working for Private Enterprise Bitbucket Servers.
What I found that for Enterprise, the API access is formed in the way
{my-private-bibucket-server}//rest/api/latest/projects/{project-id}/repos/{repo-id}/
I was able to fetch tags by using
GET {my-private-bitbucket-server}/rest/api/latest/projects/{project-id}/repos/{repo-id}/tags
However, when I try to do a POST
post {my-private-bitbucket-server}/rest/api/latest/projects/{project-id}/repos/{repo-id}/tags
with the body
{
"name" : "test-tag",
"startPoint" : {
"hash" : "<some hash value>"
}
}
it doesn't work
I am using powershell