Please see the /secured/share and /secured/unshare endpoints.
Shares files with the anonymous user. It gives the anonymous user read access. All paths must be files.
URL Path: /secured/filesystem/anon-files
HTTP Method: POST
ERROR CODE: ERR_NOT_A_USER, ERR_BAD_OR_MISSING_FIELD, ERR_DOES_NOT_EXIST, ERR_NOT_OWNER, ERR_NOT_A_FILE
Request Body:
{
"paths" :["/path/to/a/file"]
}
Curl Command:
curl -H "$AUTH_HEADER" -d '{"paths" : ["/path/to/a/file"]}' http://example.org/secured/filesystem/anon-files
Response Body:
{
"paths" : {
"/path/to/a/file" : "http://URL-to-file/"
},
"user" : "username"
}