Method UpdateImportTemplateCategory
UpdateImportTemplateCategory(String, ImportTemplateCategoryContract)
Update an import template category
Declaration
ImportTemplateCategoryContract UpdateImportTemplateCategory(string connectionId, ImportTemplateCategoryContract importTemplateCategory)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
ImportTemplateCategoryContract | importTemplateCategory | ImportTemplateCategory to update |
Returns
Type | Description |
---|---|
ImportTemplateCategoryContract |
Examples
POST http://YourServerName/InfoShare/Json/Common/UpdateImportTemplateCategory
Example for update an import template category.{
"connectionId": "b6742bb8-ef97-44ae-819b-a2fa2200908a",
"importTemplateCategory": {
"Id": "3a2cfae8-6ae0-e911-a94a-00155d290a08",
"Name": {
"Values": [
{
"Text": "test",
"Culture": "de"
},
{
"Text": "test",
"Culture": "en"
}
]
}
}
}
Response:
{
"CreateImportTemplateCategoryResult": {
"Id": "64b04e2b-3b46-ee11-8e3e-00155d290a68",
"Name": {
"Values": [
{
"Culture": "de",
"Text": "test2"
},
{
"Culture": "en",
"Text": "test2"
} ]
}
}
}
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 | Import template not found {importTemplate} (10073) |
ServiceException | The administrative context {administrativeContext} is already checked out by user {displayLoginName} (10129) |