Powershell API v3 "Get All Requests"

Powershell API v3 "Get All Requests"

First off, here's my code:


  1. $header = @{TECHNICIAN_KEY=$ApiKey} 
  2. $params = @{input_data=$input;format='json'}
  3. $Uri = $SdpUri + "/api/v3/requests/"
  4. $result = Invoke-RestMethod -Method GET -Uri $Uri -Headers $header -ContentType "application/x-www-form-urlencoded" 
  5. $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.

                  New to ADSelfService Plus?