This operation downloads a file in the Edge Drive public share based on the GUID of the file.
Request
Syntax
GET <webservice>/drive/publicshare/{shareId}/file/{fileId}/action/download HTTP/1.1
Host: <host name>
where <webservice> is the root path used to route the API requests to the Web Server.
For more information, see Available Web Services for REST API.
Request Parameters
Name | Description | Required |
shareID | The unique identifier returned when you share a file. To retrieve the ShareId, use the syncWebFolderId response when you share a file or view the shared files in Edge Drive. For details on retrieving the syncWebFolderId response, see Sharing a File or Folder or Viewing Shared Files and Folders. | Yes |
fileId | The GUID of the file to be downloaded. GUID is a unique identifier for a file and remains the same even when you rename or move the file to another path. To retrieve the GUID of the file, see Viewing File or Folder Properties. | Yes |
Request Headers
Name | Description |
Host | The host name of the Web Server or Web Console used in the API request. |
Response
Response Parameters
Parameter | Description | Element |
errorCode | The possible error codes. Valid values are:
| App_GenericResp |
errorString | The description of the error code. Not all error codes have an error string. | App_GenericResp |
Examples
Sample Request
GET <webservice>/drive/publicshare/36/file/7c4e538afe864e25ae415357aa6fa04e/action/download HTTP/1.1
Host: client.mydomain.com
Sample Response
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<App_GenericResp errorCode="0"/>