I am trying to use PowerShell to add a private note to a ticket, I don't want it to be a plublic note as it might confuse the users. Any ideas?
Solved
How can I add a private note to a ticket using PowerShell
Best answer by ColePatterson20
$Body = @{body = "test"}
$credPair = "%APIKEY%:."
$encodedCredentials = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes($credPair))
$headers = @{ Authorization = "Basic $encodedCredentials" }
Invoke-WebRequest "https://%Domain-name.com%/api/v2/tickets/%TICKET-NO%/notes" -Headers $headers -ContentType "application/json" -Method Post -Body ($Body | ConvertTo-JSON) -UseBasicParsing
Reply
Join the Community
Already have an account? Login.
Sign in to the Community
No account yet? Create an account.
Social Login
Login with LinkedInor use your username
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.