Document-related functions
    | Function | REST Call URI | Verb | Description | 
|---|---|---|---|
| Download document | http(s)://{ FQDN of the BEMS-Docs server}:8443/docs/{ version}/{ repository}/{ filename-with-path} | GET | This function downloads the document content to the client.  The content type is not sent to the client. Supported output HTTP headers:
                   
 For chunked and resumable downloads, the following HTTP headers are optional:
                   
 Optional parameters:
                   
 | 
| List documents | http(s)://{ FQDN of the BEMS-Docs server}:8443/docs/{ version}/{ repository}/{ folder-path} | GET | This function lists the documents in the specified folder.  Optional parameters:
                   
 Paging and recursion cannot be specified in the same request if the format is specified as nested. For an example of a list documents output, see File shares folder listing and metadata output and SharePoint folder listing and metadata output.  | 
| Upload document | http(s)://{ FQDN of the BEMS-Docs server}:8443/docs/{ version}/{ repository}/{ filename-with‐path} | PUT | This function uploads the document to the Share or  SharePointserver. The document contents are sent as the JSON body.
                   
 Optional parameters:
                   
 | 
| Create Folder | http(s)://{ FQDN of the BEMS-Docs server}:8443/docs/{ version}/{ repository}/{ folder-path}/ | PUT | This function creates a folder. If a trailing slash is added to the end of the file path, the function automatically creates any intermediate folders if they do not exist. Optional parameters:
                   
 | 
| Delete document | http(s)://{ FQDN of the BEMS-Docs server}:8443/docs/{ version}/{ repository}/{ filename-with‐path} | DELETE | This function deletes the specified document. Optional parameters:
                   
 | 
| Delete folder | http(s)://{ FQDN of the BEMS-Docs server}:8443/docs/{ version}/{ repository}/{ folder‐path}?recurse | DELETE | This function deletes the specified folder if the folder contents are empty.  Optional parameters:
                   
 | 
| Retrieve document metadata | http(s)://{ FQDN of the BEMS-Docs server}:8443/docs/{ version}/{ repository}/{ filename-with-path}?metadata | GET | This function returns document metadata. Optional parameters:
                   
 | 
| Retrieve folder metadata | http(s)://{ FQDN of the BEMS-Docs server}:8443/docs/{ version}/{ repository}/{ folder-path}?metadata | GET | This function returns folder metadata. If the folder has views associated with them, then these are returned.  Optional parameters:
                   
 For an example of retrieved folder metadata output, see SharePoint library metadata retrieval. | 
| Parse storage path | http(s)://{ FQDN of the BEMS-Docs server}:8443/docs/{ version}?parse&path={ storage-path} | GET | This function parses the storage path.  Optional parameters:
                   
 | 
| Move File | http(s)://{ FQDN of the BEMS-Docs server}:8443/docs/{ version}/{ repository}/{ filename-with-path}?action=move | POST | This function moves a file to a new location. The required request body is JSON, as shown in the following example:
                   
 
 | 
| Move Folder | http(s)://{ FQDN of the BEMS-Docs server}:8443/docs/{ version}/{ repository}/{ foldername-with-path}?action=move | POST | This function moves a folder to a new location. The required request body is JSON, as shown in the following example:
                   
 
 | 
| Protect document | http(s)://{ FQDN of the BEMS-Docs server}:8443/docs/{ version}/{ repository}/{ filename-with-path}?action=protect | POST | This function protects a document.  The required request body is JSON, as shown in the following example:
                   
 
 
 | 
| Unprotect document | http(s)://{ FQDN of the BEMS-Docs server}:8443/docs/{ version}/{ repository}/{ filename-with-path}?action=unprotect | POST | This function unprotects a document in the repository. | 
* Required for documents in flat view and Shared With Me 
Microsoft
  SharePoint
 libraries and specifies the actual path of document** Required for Shared With Me 
SharePoint
 folders and specifies the actual path of the folder