Method AddFolderElementDocuments
AddFolderElementDocuments(String, FolderPathContract, List<String>)
Add a list of documents to a folder.
Declaration
List<string> AddFolderElementDocuments(string connectionId, FolderPathContract folderPath, List<string> documentIds)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
FolderPathContract | folderPath | Path of target folder |
System.Collections.Generic.List<System.String> | documentIds | Ids of all document which shall be added |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.String> | The Ids of all created folder elements. |
Examples
POST http://YourServerName/InfoShare/Json/Folder/AddFolderElementDocuments
Example for add a list of documents to a folder.{
"connectionId": "18f8ae88-cd84-4893-ae15-28b2f076cddc",
"folderPath": {
"Culture": "en-US",
"FolderSystemId": "9762c061-b7cf-e911-a939-00155d290a08",
"Path": "cb62c061-b7cf-e911-a939-00155d290a08\\400c1f61-c0cf-e911-a939-00155d290a08
\\fbddb7f0-bede-e911-a948-00155d290a08",
"PathGlobal": {
"Values": [{
"Culture": "de",
"Text": "Allgemeine Suche\\test" }, {
"Culture": "en",
"Text": "Default search\\test" }] } },
"documentIds": ["9e2009e6-0cde-e911-a947-00155d290a08","f547172c-92de-e911-a948-00155d290a08",
"653fa7fd-f6dd-e911-a947-00155d290a08"]
}
Response:
{
"AddFolderElementDocumentsResult": ["c0eb148b-c0de-e911-a948-00155d290a08",
"b3ec148b-c0de-e911-a948-00155d290a08", "9aed148b-c0de-e911-a948-00155d290a08"]
}
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 | Document already in folder (10205) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |
ServiceException | Not allowed (10014) |