Search Results for

    Show / Hide Table of Contents

    Method CreateCloudDocumentType

    CreateCloudDocumentType(String, CloudDocumentTypeContract)

    Create a cloud document type

    Declaration
    string CreateCloudDocumentType(string connectionId, CloudDocumentTypeContract cloudDocumentType)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    CloudDocumentTypeContract cloudDocumentType

    CloudDocumentType to create

    Returns
    Type Description
    System.String

    The created cloud document type id

    Examples

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

    Example for create a cloud document type.

    {
       "connectionId": "e08482f2-eb69-4693-b2c1-cdc87f641ec2",
       "cloudDocumentType": {
         "FriendlyNames": [],
         "Name": {
           "Values": [{
             "Culture": "de",
             "Text": "Document type test" }] },
         "ImportTemplateId": "14df9e5d-fee0-e911-a94b-00155d290a08",
         "SearchFolderPath": {
           "Culture": "en-US",
           "FolderSystemId": "9762c061-b7cf-e911-a939-00155d290a08",
           "Path": "cb62c061-b7cf-e911-a939-00155d290a08\\c3ae40de-1fd2-e911-a93c-00155d290a08
                  \\8bdf9e5d-fee0-e911-a94b-00155d290a08",
           "PathGlobal": {
             "Values": [{
               "Culture": "de",
               "Text": "Vorgang Suche\\Document type test" }, {
               "Culture": "en",
               "Text": "Process search\\Document type test" }] } } }
    }

    Response:

    {
       "CreateCloudDocumentTypeResult": "37e19e5d-fee0-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

    Root folder not found (10023)

    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