Method AddFolderElementProcess
AddFolderElementProcess(String, FolderPathContract, String)
Add a process to a folder.
Declaration
string AddFolderElementProcess(string connectionId, FolderPathContract folderPath, string processId)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
FolderPathContract | folderPath | Path of target folder |
System.String | processId | Id of process which shall be added Id |
Returns
Type | Description |
---|---|
System.String | Id of the created folder element |
Examples
POST http://YourServerName/InfoShare/Json/Folder/AddFolderElementProcess
Example for add existing process 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" }] } },
"processId": "9e2009e6-0cde-e911-a947-00155d290a08"
}
Response:
{
"AddFolderElementProcessResult": ["1a2009e3-0cde-e911-a947-00155d290a08"]
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Root folder not found (10023) |
ServiceException | No process found for processId {processId} (10015) |
ServiceException | Folder not found {folderPath} (10025) |
ServiceException | Process does not exists {processId} (10027) |
ServiceException | Process already in folder (10206) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |
ServiceException | Not allowed (10014) |