latestOpenAPI 3.0.02026-07-135965404.0 KB
a1bd874b5960
Shares
Update a share
Change the settings on an active share. Any changes made will affect all users that have access to the share.
When updating invitees, pass the recipients body paramater with the full list of people who should be included on the share. If you resend the list without an existing recipient, they will be removed from the share.
Setting the Share Permissions
Only 5 different combinations of permissions are valid for the accessMode object:
- Upload Only: This allows share visitors to upload to a share but do nothing else to the contained files. To use this mode, set upload to true and all other permissions to false
- Download Only: This allows share visitors to download files from a share but do nothing else to the contained files. To use this mode, set download to true and all other permissions to false
- Upload and Download: This allows share visitors to upload new files to the share or download files within the share, but not make any other changes to the share contents. To use this mode, set upload and download to true and set both modify and delete to false
- All but Delete: This allows share visitors to make any changes to the contents of a share except deleting files. To use this mode, set upload, download, and modify to true and set delete to false
- Full Access: This allows share visitors to make any changes to the contents of a share. To use this mode, set all 4 permissions upload, download, modify, and delete to true
Any other combination of permissions provided as the accessMode will be rejected as a bad request.
Notes:
- Authenticated user should be the owner of the specified share.
patch/shares/{id}
Headers
ev-api-keystring required
Example:exampleaccount-zwSuWUZ8S38h33qPS8v0s
API Key
ev-access-tokenstring required
Example:19853ef63a0bc348024a9e4cfd4a92520d2dfd04e88d8679fb1ed6bc551593d1
Access Token
Request body
Example request
{
"name": "Shared Folder",
"resources": [
"/testfolder"
],
"expiration": "2017-09-25T14:12:10Z",
"isPublic": true,
"notificationEmails": [
"notify@example.com",
"notify2@example.com"
],
"messageSubject": "Invitation to a shared folder"
}Response
Successful operation
ShareResponse required— unresolved $ref