I am trying to execute the following, but it is giving me a 401 - unauthorized result. This call works in postman, but not in powershell. I have been bitten by the powershell tls issue before, but I thought forcing tls 1.2 would work. Thoughts?
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12$response = Invoke-WebRequest -Uri "https://my-domain.atlassian.net/rest/servicedeskapi/servicedesk/42/queue" -Headers @{"method"="GET""user"="me@my-Domain.com:anAwesomApiKey"}$response
I must have read a wrong bit of documentation. I went ahead and changed the authentication header to be basic, with the username as my username and the password as my auth token and it worked.
It looks like you're new here. Sign in or register to get started.