Method RenameFolderElement
RenameFolderElement(String, FolderPathContract, StringGlobalContract)
Rename a folder element (folder, search folder, document or process).
Declaration
void RenameFolderElement(string connectionId, FolderPathContract folderElementPath, StringGlobalContract newName)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
FolderPathContract | folderElementPath | Path to element which is renamed |
StringGlobalContract | newName | New global name of the folder element |
Examples
POST http://YourServerName/InfoShare/Json/Folder/RenameFolderElement
Example for rename a folder element.{
"connectionId": "dd0d8950-a5db-4d81-a190-2d686a7f034c",
"folderElementPath": {
"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" } ]} },
"newName": {
"Values": [{
"Culture": "de",
"Text": "testNEU" }, {
"Culture": "en",
"Text": "testNEW" } ]} },
}
Response:
{ }
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Not allowed to rename top-level folders (10020) |
ServiceException | Not allowed to change the name of the folder element (10021) |
ServiceException | Root folder not found (10023) |
ServiceException | Folder element not found {folderElementPath} (10026) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |
ServiceException | Not allowed (10014) |