Method CreateFolderSystem
CreateFolderSystem(String, FolderSystemContract)
Create a folder system
Declaration
string CreateFolderSystem(string connectionId, FolderSystemContract folderSystem)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
FolderSystemContract | folderSystem | FolderSystem to create |
Returns
Type | Description |
---|---|
System.String | The created folder system id |
Examples
POST http://YourServerName/InfoShare/Json/Common/CreateFolderSystem
Example for create a folder system.{
"connectionId": "eb5718e6-8fd6-460b-9da3-4fb0434e81a8",
"folderSystem": {
"Name": "foldersystem Test",
"Description": {
"Values": [{
"Text": "foldersystem Test",
"Culture": "de" }, {
"Text": "foldersystem Test",
"Culture": "en" }, {
"Text": "foldersystem Test",
"Culture": "fr" }] },
"ProtectionDomainId": "0100a000-38a7-11d8-a902-0050bf427e8f",
"ImportTemplateId": "3a2cfae8-6ae0-e911-a94a-00155d290a08" }
}
Response:
{
"CreateFolderSystemResult": "dedfab40-ece0-e911-a94b-00155d290a08"
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Name is not unique for culture ({culture}): {name} (10066) |
ServiceException | Object with id {id} already exists (10078) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |