API Response Error - Status Code 3001
Hello,
I am trying to query the CMDB endpoint using PowerShell, please see example code below:
$apikey = "myKey" # Note this is redacted
$token = @{"authtoken" = $apikey}
Invoke-WebRequest -Uri $url -Method Get -Headers $token -ContentType "application/x-www-form-urlencoded"
The error message is:
<?xml version="1.0" encoding="UTF-8" ?>
<API version="1.0">
<response>
<operation name="">
<result>
<statuscode>3001</statuscode>
<status>Unknown error.</status>
<message>Error when processing request - null</message>
</result>
</operation>
</response>
</API>
I have the same issue when using Postman. What am I doing wrong? Thanks
ServiceDesk Plus version: 13.0 Build 13008