Hi i am using the script from itflow-org/itflow-api-powershell/blob/main/assets/TRMM-create-update.ps1
to sync Tacticle Rmm and ITFlow and i an getting the following error
API connection error. Aborting...
Invoke-RestMethod : The remote server returned an error: (401) Unauthorized.
At C:\ProgramData\TacticalRMM\2636955709.ps1:112 char:11
+ $exists = Invoke-RestMethod -Method GET -Uri $uri_read
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
I have tried another example script with the same API and it works fine so its not the api.
Anyone have any ideas or have used this script and got it working
Thanks