$API_URL = "AWSMTSVDSOLW6:17778/.../AppendNote"
$cred = Get-Credential
$Post = @{ alertObjectIds = '12'
notes= 'newnote' }
$Json = $Post | ConvertTo-Json
$Response = Invoke-RestMethod -Method Post -Uri $API_URL -ContentType 'application/json' -Body $Json-Credential $cred
Error:307 Temporary Redirect

