Changing Share Options
You can use the share call to change the share options of a folder.
Parameters
| Parameter | Description | 
|---|---|
| id |  The ID of the document. 
					  This parameter is required if the path parameter is not present.  | 
 
				
| path |  The fully qualified File Share path name. 
					  This parameter is required if the id parameter is not present; otherwise, it is ignored.  | 
 
				
| expirationDate | Optional. 
					  the share expiration date. The format is yyyy-mm-dd. If it is left blank, the share never expires.  | 
 
				
| expirationAction |  
					  This parameter is required if the expirationDate parameter is present. The default value is add when the expirationDate parameter is present; otherwise, it has no default value.  | 
 
				
| replaceUsers | Optional. | 
| user | Optional. | 
| message |  Optional. 
					  A message in HTML format. The default value is a system generated message.  | 
 
				
| SendToSelf |  Optional. 
					  If the value is yes, send a copy of the email to the logged-on user.  | 
 
				
-  
			 
Sample request to add a user as an editor:
replaceUsers=false user=add;UserId;E
 -  
			 
Sample request to delete a collaborator:
replaceUsers=false user=delete;UserId1
 -  
			 
Sample request to remove all existing collaborators and add new ones:
replaceUsers=true user=add;UserId1;O user=add;UserId2;E user=add;UserId3;V
 -  
			 
Sample request to remove all collaborators so only the original owner can access the document:
replaceUsers=true
 -  
			 
Sample request to add or change the share expiration date:
expirationDate=2013-12-31
 -  
			 
Sample request to delete the share expiration date so the share will never expire:
expirationDate=
 
Response
Example:
{"users":"O:admin:A:admin;N:DBUser:U:DBUser","dateModified":0,"shareExpiration":1395028799469,"type":"D","lastUpdatedOn":1394817031577, "size":0,"message":"","id":"143500000003","createdOn":1394041226577,"latestVersion":39,"shareId":"143500000003", "createdBy":"admin","name":"A"}
Format of the Users field is <user type>:<user id>:<share status code><displayable user id>.
