Is it possible to patch entitlements to a role? patch-role | SailPoint Developer Community doesn’t list entitlements as a patchable field, but it and the beta version both note that entitlements can be seen in the response, suggesting it might just be a documentation issue.
Invoke-RestMethod : {"messages":[{"localeOrigin":"REQUEST","locale":"en-US","text":"The request could not be parsed."},{"localeOrigin":"DEFAULT","locale":"en-US","text":"The request could not
be parsed."}],"trackingId":"dd5a6794e4414b1bbc541293399b7107","detailCode":"400.0 Bad request syntax"}
I’m not sure if this field is supported as you mentioned from the documentation. In the body of your request, you must have the body begin as an array:
Invoke-RestMethod : {“messages”:[{“localeOrigin”:“DEFAULT”,“locale”:“en-US”,“text”:“The request could not be parsed.”},{“localeOrigin”:“REQUEST”,“locale”:“en-US”,“text”:“The request could not
be parsed.”}],“trackingId”:“dee22dcd3c6649268da3d2a196ff00fb”,“detailCode”:“400.0 Bad request syntax”}
At line:1 char:15
Hey @RNewton, So the main reason for request failing is missing “[]”
So the body should be sent as mentioned below, the main reason you are getting that error is due to missing opening and closing square brackets “[]”:
See the below attached image and highlighted part in order to successfully add the Access profile/entitlement