documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Document new share attributes and the "download" permission

Open PVince81 opened this issue 3 years ago • 0 comments

Ref https://github.com/nextcloud/server/pull/32482

curl -u admin:admin 'https://domain.tld/ocs/v2.php/apps/files_sharing/api/v1/shares/$shareId` \
  -X 'PUT' \
  -H 'OCS-APIRequest: true' \
-H 'Accept: application/json, text/plain, */*' \
  -H 'Content-Type: application/json' \
  --data-raw '{"attributes":[{"scope": "permissions", "key": "download", "enabled": "false"}]}'

PVince81 avatar Sep 28 '22 16:09 PVince81