I am getting this error below when running this script and it seems that the payload i am presenting is not working?
Invoke-RestMethod : {"messages":[{"localeOrigin":"DEFAULT","text":"The request could not be parsed.","locale":"en-US"},{"localeOrigin":"REQUEST","text":"The request could not be
parsed.","locale":"en-US"}],"trackingId":"feda25d4ab0444c0ae779ecd5ff5089a","detailCode":"400.0 Bad request syntax"}
At C:\Users\admin_sdoll\Desktop\Sailpoint SB testing.ps1:85 char:1
+ Invoke-RestMethod -Method Post -Uri $fullUrl -Headers @{ Authorizatio ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
C:\Users\admin_sdoll\Desktop\Sailpoint SB testing.ps1 : Failed to create role {"messages":[{"localeOrigin":"DEFAULT","text":"The request could not be
parsed.","locale":"en-US"},{"localeOrigin":"REQUEST","text":"The request could not be parsed.","locale":"en-US"}],"trackingId":"2ee6ce2823d8456ab209d40a1cd6f8c8","detailCode":"400.0
Bad request syntax"}
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Sailpoint SB testing.ps1