I have a SharePoint group that already has it's permissions levels defined. I want to add this group (with it's existing permissions) to a SharePoint list item. In my flow, I am using a Send an HTTP request to SharePoint action to try to accomplish this using the api...
_api/web/lists/getbytitle('My SharePoint List')/items(@{triggerOutputs()?['body/ID']})/roleassignments/addroleassignmentwithroledefinitionbinding(principalid=@{variables('GroupId'))
This is currently giving the error.... "Cannot find resource for the request addroleassignmentwithroledefinitionbinding."
Has anyone else tried this? How do I go about resolving this error?