I'm attempting to obtain a specific range of Offenses and the API documentation calls for setting a header like range="items=0-49". However, when using invoke-resetmethod within PowerShell I receive the following error:
Invoke-RestMethod : The 'Range' header must be modified using the appropriate property or method.Parameter name: nameExample Code:
Invoke-RestMethod -Method get -Uri $global:OffensesURI -Header @{SEC= $apiKey; Range="items=0-49"}
Anyone happen to know how to resolve this?
------------------------------
Matt M. CISSP, GCFE, GCFA, GREM
------------------------------