Retrieve the ACL object.
To retrieve ACL object, send GET request to according URL:
https://api.appery.io/rest/1/db/files/<fileName>/acl
X-Appery-Master-Key header may be specified instead of X-Appery-Session-Token, granting access to DB.
Example
cURL
curl -X GET \
-H "X-Appery-Database-Id: 544a5cdfe4b03d005b6233b9" \
-H "X-Appery-Session-Token: 6fb9515d-82fd-43b3-9124-f0534dceca8e" \
https://api.appery.io/rest/1/db/files/myFile.txt/acl
{
"<user>": {
"<permissionType>": <boolean>,
...
},
...
}
In the response:
<user>
is userId, or"*"
for 'public' ACL;<permissionType>
is"read"
or"write"
;