Forums

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

Internal Server Error when creating a tag

netmajor September 12, 2025

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";

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events