sailpoint-oss / powershell-sdk

PowerShell Module for accessing SailPoint IdentityNow APIs
https://developer.sailpoint.com/
MIT License
21 stars 15 forks source link

Example PowerShell Issue #49

Closed tyler-mairose-sp closed 1 year ago

tyler-mairose-sp commented 1 year ago

I am having an issue with the Powershell SDK. SDK version: 1.1.3 OS: Windows 11 PowerShell Version 7.0.4

Issue

When using New-AccessRequest, the following error is thrown:

Line |
 113 |          $LocalVarResult = Invoke-ApiClient -Method 'GET' `
     |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot bind argument to parameter 'ContentTypes' because it is null.

The endpoint v3/access-requests is actually not sending any content type, hence the error when using DeserializeResponse within Invoke-ApiClient.

Expected Results

I expect the access request to be created without any issue.