-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document new share attributes and the "download" permission #9186
Labels
Comments
3 tasks
PR here: #9518 |
Is there any way to create a link with this attribute set via curl and not have to make a separate PUT request?
|
Not even working with what you posted :/ ❯ curl -u admin:PWD 'https://DOMAIN/ocs/v2.php/apps/files_sharing/api/v1/shares/ID' -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"}]}'
<?xml version="1.0"?>
<ocs>
<meta>
<status>failure</status>
<statuscode>500</statuscode>
<message>Internal Server Error
OCA\Files_Sharing\Controller\ShareAPIController::updateShare(): Argument #10 ($attributes) must be of type ?string, array given, called in /var/www/html/lib/private/AppFramework/Http/Dispatcher.php on line 225 in file '/var/www/html/apps/files_sharing/lib/Controller/ShareAPIController.php' line 1069</message>
</meta>
<data/>
</ocs> |
any comments? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ref nextcloud/server#32482
The text was updated successfully, but these errors were encountered: