From e0757ec2d9addc68b3251e93e97da89637b951fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Thu, 22 Nov 2018 14:35:38 +0100 Subject: [PATCH] "canUpload" is a string not a boolean "canUpload" is a string which can be either "true" or "false", not a boolean. --- developer_manual/core/ocs-share-api.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/developer_manual/core/ocs-share-api.rst b/developer_manual/core/ocs-share-api.rst index b96043546..74a16858a 100644 --- a/developer_manual/core/ocs-share-api.rst +++ b/developer_manual/core/ocs-share-api.rst @@ -77,7 +77,7 @@ Share a file/folder with a user/group or as public link. * POST Arguments: path - (string) path to the file/folder which should be shared * POST Arguments: shareType - (int) 0 = user; 1 = group; 3 = public link; 6 = federated cloud share * POST Arguments: shareWith - (string) user / group id with which the file should be shared -* POST Arguments: publicUpload - (boolean) allow public upload to a public shared folder (true/false) +* POST Arguments: publicUpload - (string) allow public upload to a public shared folder (true/false) * POST Arguments: password - (string) password to protect public link Share with * POST Arguments: permissions - (int) 1 = read; 2 = update; 4 = create; 8 = delete; 16 = share; 31 = all (default: 31, for public shares: 1) @@ -119,7 +119,7 @@ Update a given share. Only one value can be updated per request. * PUT Arguments: permissions - (int) update permissions (see "Create share" above) * PUT Arguments: password - (string) updated password for public link Share -* PUT Arguments: publicUpload - (boolean) enable (true) /disable (false) public +* PUT Arguments: publicUpload - (string) enable (true) /disable (false) public upload for public shares. * PUT Arguments: expireDate - (string) set a expire date for public link shares. This argument expects a well formatted date string, e.g. 'YYYY-MM-DD'