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"}]}'