This is possible and every EAI endpoint has a sub /acl endpoint on which to POST. You should find some good information in the 'Object Sharing and ACL presentation/mutations' section below, if it's still not clear to you how to do it after going through that info, please reply and let us know exactly what you're running and what kind of result you're getting.
Object Sharing and ACL presentation/mutations
All endpoints that list user objects should support object sharing and access control list (ACL) presentation and mutation.
ACL Presentation
An ACL consists of the following fields:
modifiable
Required. A boolean flag indicating whether the ACL is modifiable or not.
owner
Required. Username of the owner of this object, if an object is not owned by a user should be set to 'nobody'
perms
Required. A dictionary that maps action to a list of roles which can perform that action
sharing
The level at which this object is shared, can be one of: system, app, user, global
Example:
<s:key name="acl">
<s:dict>
<s:key name="modifiable">false</s:key>
<s:key name="owner">admin</s:key>
<s:key name="sharing">user</s:key>
<s:key name="perms">
<s:dict>
<s:key name="read"><s:list><s:item>admin</s:item></s:list></s:key>
<s:key name="write"><s:list><s:item>admin</s:item></s:list></s:key>
</s:dict>
</s:key>
<s:dict/>
</s:key>
ACL Modification
A request to modify the ACL of an object should POST on the 'acl' custom action of an object (url: ...endpoint/entity-name/acl). The entire ACL should be provided rather than a diff. The following parameters should be provided:
perms.<action>
A comma delimited list of roles which can perform the given action
owner
The username of the new owner of the object
sharing
The level at which this object is shared, can be one of: system, app, user, global
... View more