To add a custom permission to a List or an item, we can use SPRoleAssignmentCollection and we can also use AddToCurrentScopeOnly to avoid adding users with Limited Access permission to the parent.
In REST API, there is an endpoint for RoleAssignmentCollection and RoleAssignment. How do I use AddToCurrentScopeOnly with REST API? I did not find any reference in MSDN article.
Any pointers please?
https://site-url/_api/web/lists/getByTitle('Test')/roleassignments/AddToCurrentScopeOnly(roleDefId=1073741828)
and making a post request to this endpoint – Gautam Sheth Feb 6 '18 at 10:49