Method AddDocumentListToRemoteFolder
AddDocumentListToRemoteFolder(String, String, List<String>)
Add a list of documents to a remote folder. If a document name exists already in the target folder the document reference in the remote folder is changed.
Declaration
List<string> AddDocumentListToRemoteFolder(string connectionId, string remoteFolderPath, List<string> documentIds)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | remoteFolderPath | Path of target remote folder. See also Path |
System.Collections.Generic.List<System.String> | documentIds | List of document ids which shall be added |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.String> | A list of names of all created remote folder elements. |
Examples
POST http://YourServerName/InfoShare/Json/RemoteFolder/AddDocumentListToRemoteFolder
Example for add a list of documents to a remote folder.{
"connectionId": "e3b3b164-9b0b-4d00-9981-83fe4835df1a",
"remoteFolderPath": "1eb9edb4-2ce0-e911-a94a-00155d290a08",
"documentIds": ["6ba7a04c-a0df-e911-a949-00155d290a08", "9ba8a04c-a0df-e911-a949-00155d290a77"]
}
Response:
{
"AddDocumentToRemoteFolderResult": ["MicrosoftTeams-image1.png", "MicrosoftTeams-image2.png"]
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Root folder not found (10023) |
ServiceException | Folder not found {folderPath} (10025) |
ServiceException | No document found for documentId {documentId} (10005) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |
ServiceException | Document {documentId} is already an element of folder {folderId} (10266) |