# PowerShell SDK v1.4.12: Send-V2024EntitlementRequestConfig is broken

**URL:** <https://developer.sailpoint.com/discuss/t/powershell-sdk-v1-4-12-send-v2024entitlementrequestconfig-is-broken/105374>\
**Category:** SHF Discussion and Questions\
**Tags:** identity-security-cloud\
**Created:** [March 25, 2025, 7:22pm UTC](https://developer.sailpoint.com/discuss/t/powershell-sdk-v1-4-12-send-v2024entitlementrequestconfig-is-broken/105374 "2025-03-25T19:22:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Norris](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@David\_Norris](https://developer.sailpoint.com/discuss/u/David_Norris)\
**Post date:** [March 25, 2025, 7:22pm UTC](https://developer.sailpoint.com/discuss/t/powershell-sdk-v1-4-12-send-v2024entitlementrequestconfig-is-broken/105374/1 "2025-03-25T19:22:51Z")

</div>

**API / PowerShell involved:**

> **[put-entitlement-request-config | SailPoint Developer Community](https://developer.sailpoint.com/docs/api/v2024/put-entitlement-request-config)**
>
> \<Heading

Using the PowerShell reference example provided on the page (I replaced the id and only specified “manager” for the grantRequestApprovaSchemes param locally on my end) would result in an error:

```auto
$Id = "2c91808a7813090a017814121e121518" # String | Entitlement ID
$XSailPointExperimental = "true" # String | Use this header to enable this experimental API. (default to "true")
$EntitlementRequestConfig = @"
{
  "requestCommentsRequired" : false,
  "deniedCommentsRequired" : false,
  "allowEntitlementRequest" : true,
  "grantRequestApprovalSchemes" : "entitlementOwner, sourceOwner, manager, workgroup:2c918084660f45d6016617daa9210584"
}
"@

# Replace Entitlement Request Config

try {
    $Result = ConvertFrom-JsonToEntitlementRequestConfig -Json $EntitlementRequestConfig
    Send-V2024EntitlementRequestConfig -Id $Id -XSailPointExperimental $XSailPointExperimental -EntitlementRequestConfig $Result 

    # Below is a request that includes all optional parameters
    # Send-V2024EntitlementRequestConfig -Id $Id -XSailPointExperimental $XSailPointExperimental -EntitlementRequestConfig $Result   
} catch {
    Write-Host $_.Exception.Response.StatusCode.value__"Exception occurred when calling Send-V2024EntitlementRequestConfig"
    Write-Host $_.ErrorDetails
}

```

Error:

```auto
Invoke-V2024ApiClient: <path>\Modules\PSSailpoint.V2024\1.4.12\Api\V2024EntitlementsApi.ps1:1119
Line |
1119 | $LocalVarResult = Invoke-V2024ApiClient -Method 'PUT'
     | Cannot index into a null array.

```

Do the SDK releases not go through automated testing against the reference example?

#BugReport#InadequateReleaseTesting

---

<div class="post-metadata">

**Author:** ![David\_Norris](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@David\_Norris](https://developer.sailpoint.com/discuss/u/David_Norris)\
**Post date:** [March 25, 2025, 7:48pm UTC](https://developer.sailpoint.com/discuss/t/powershell-sdk-v1-4-12-send-v2024entitlementrequestconfig-is-broken/105374/2 "2025-03-25T19:48:27Z")

</div>

Yesterday’s v1.4.13 release also seem to have the same issue.

When executing from the online API doc page:

 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/a/f/afb2d5afc320af1e4119c50c4f2476917c7fb729.jpeg)

So maybe it’s the API being too experimental.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [May 24, 2025, 7:48pm UTC](https://developer.sailpoint.com/discuss/t/powershell-sdk-v1-4-12-send-v2024entitlementrequestconfig-is-broken/105374/3 "2025-05-24T19:48:51Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
