Search Results for

    Show / Hide Table of Contents

    Method CreateImportTemplateCategory

    CreateImportTemplateCategory(String, ImportTemplateCategoryContract)

    Create an import template category

    Declaration
    ImportTemplateCategoryContract CreateImportTemplateCategory(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 create

    Returns
    Type Description
    ImportTemplateCategoryContract

    The created import template category id

    Examples

    POST http://YourServerName/InfoShare/Json/Common/CreateImportTemplateCategory

    Example for create a 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

    Object with id {id} already exists (10078)

    ServiceException

    The administrative context {administrativeContext} is already checked out by user {displayLoginName} (10129)

    ServiceException

    Verification code is needed: Verification code not yet verified (10152)

    Back to top Copyright © Kendox