POST /api/source/loadAccounts

Jishnu,

I found that you have to keep the multipart/form content type, and actually submit the disableOptimization as “true” in a form, and not in a regular JSON body. This is slightly different than the CC api in that way.

I also found in PostMan that if you submit just a regular JSON body you get a 200 back, but it doesn’t actually do an unoptimized aggregation.

The following code works for me in PowerShell

#set your headers appropriately
$boundary = [System.Guid]::NewGuid().ToString()
$LF = "`r`n"
$bodyLines = (
    "--$boundary",
    "Content-Disposition: form-data; name=`"disableOptimization`"$LF",
    "true",
    "--$boundary"
    ) -join $LF

    $transformsuri = "https://hostname.api.identltynow.com/beta/sources/sourceid/load-accounts"
    $transforms = Invoke-RestMethod -URI $transformsuri -Method POST -Headers $headers -ContentType "multipart/form-data; boundary=`"$boundary`"" -Body $bodyLines
5 Likes