My goal is probably a common requirement. Our HR team have a SharePoint list for Pay Authorisation requests and need the items to have restricted permissions where the Author, Approvers and HR team are the only ones allowed to view the contents.
I'm using the information in a blog by Serge Luca:
https://sergeluca.wordpress.com/2018/05/03/assign-unique-permissions-to-a-document-with-the-new-send-an-http-request-to-sharepoint-action-how-to-use-the-sharepoint-rest-api-in-flow/
The first part works just fine:
However I am getting Flow Failed error when I try to set the Author of the document:

The Flow shows the error like this:

And the detail says:
<b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
<br><br>
<b> Requested URL: </b>/sites/<sitename>/_api/web/lists/getByTitle('Pay Authorisation')/items(8211)/roleassignments/addroleassignment(principalid=firstname.lastname@domain.com} ,roledefid=1073741826)<br><br>
What I don't understand is that both requests are very similar and post to the same document. So I don't understand why one works and the other doesn't.
I'd really appreciate any insights or assistance.