Hi,
With the upgrade to 12.8.0, the Powershell code to use API to update tickets stopped working. The WHD is installed in a Windows 2012 R2 Server (yes...to be upgraded...someday)
To get the ticket detais, I've used the workaround to use curl (from curl.se) to get the details.
However, to put a tech note, the code
Invoke-RestMethod -Uri $fullUrl -Method 'Post' -Body $body -Headers $header
no longer works - Invoke-RestMethod : The request was aborted: Could not create SSL/TLS secure channel.
Ok... now WHD supports TLS 1.3, but the code
[Net.ServicePointManager]::SecurityProtocol = "Tls12, Tls11, Tls, Ssl3"
before the Invoke-RestMethod doesn't work either.
Tried to use
curl.exe -X POST --ca-native --json $body $fullUrl
where $body = {"noteText": "Tech Note here","jobticket": {"type": "JobTicket","id":50000}}
but curl start to interpret the json instead of passing it as arg - curl: (6) Could not resolve host: Tech (and so on...)
Bottom line:
How can I use Invoke-RestMethod or curl to update tech note on a ticket, using API (as I was on WHD 12.7.x) ?
Any help ?
Thanks
JR