- $header = @{TECHNICIAN_KEY=$ApiKey}
- $params = @{input_data=$input;format='json'}
- $Uri = $SdpUri + "/api/v3/requests/"
- $result = Invoke-RestMethod -Method GET -Uri $Uri -Headers $header -ContentType "application/x-www-form-urlencoded"
- $result | select -expandproperty requests | select id,subject,requester
By description, this is supposed to get all requests. However, it is only returning the latest 10 requests. I need to be able to get more than that, as I am attempting to automate something based on specific tickets and do not want the script to miss any requests.