https://[sitesname]/sites/dev/_api/web/lists/getbytitle('listname')/items(4)/roleassignments/addroleassignment(principalid=17,roledefid=1073741826)
I called the above web service in the Sharepoint Designer,
and I got the below response
{"odata.error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have permission to perform this action or access this resource."}}}
I have checked the running account for this workflow have a FULL CONTROL and Limited ACCESS permission to this item.