Hi,
i am trying to add tag to Bitbucket project repository but I am still get http 500 Internal server error.
$token = ""
$newTagName = "NewTak_25.88.0.0-5ad8bbb_ApiTests_uat"
$commitHashShort = "5ad8bbb"
$postParams = @{
"name" = "$newTagName"
"target" = @{
"hash" = "$commitHashShort"
}
} | ConvertTo-Json;
Write-Host $postParams
$headers = @{
Authorization = "Bearer $token"
Accept = 'application/json'
};
try{
$tagResponse =Invoke-RestMethod -Method POST -Uri $url -Headers $headers -Body $postParams -ContentType "application/json";