Search Results for

    Show / Hide Table of Contents

    Method UpdatePropertyTypes

    UpdatePropertyTypes(String, List<PropertyTypeContract>)

    Update a property types

    Declaration
    void UpdatePropertyTypes(string connectionId, List<PropertyTypeContract> propertyTypes)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.Collections.Generic.List<PropertyTypeContract> propertyTypes

    List of PropertyTypes to be updated

    Remarks

    For system properties you can not set this flags: Active, Obsolete, Searchable

    Examples

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

    Example for update a property types.

    {
       "connectionId": "b6742bb8-ef97-44ae-819b-a2fa2200908a",
       "propertyTypes": [{
         "Id": "daab41a4-69e0-e911-a94a-00155d290a08",
         "Active": true,
         "Configuration": {
           "StringMaximumLength": 100,
           "StringCaseSensitive": true,
           "NumberMaximumDigits": 10,
           "NumberMaximumDigitsInternal": 10,
           "NumberMaximumDecimals": 0,
           "NumberMaximumDecimalsInternal": 0 },
         "Searchable": true,
         "Name": {
         "Values": [{
           "Text": "test",
           "Culture": "de" }, {
           "Text": "test",
           "Culture": "en" }] },
         "UserDescription": "TestDescription", 
         "PropertyTypeCategoryId": "01004016-38a7-11d8-a902-0050bf427e8f",
         "PropertyTypePluginTypeEnum": "String" 
       },{
       "Id": "baab41a4-69e0-e911-a94a-00155d290a00",
         "Active": true,
         "Configuration": {
           "StringMaximumLength": 120,
           "StringCaseSensitive": true,
           "NumberMaximumDigits": 20,
           "NumberMaximumDigitsInternal": 20,
           "NumberMaximumDecimals": 0,
           "NumberMaximumDecimalsInternal": 0 },
         "Searchable": true,
         "Name": {
         "Values": [{
           "Text": "test2",
           "Culture": "de" }, {
           "Text": "test2",
           "Culture": "en" }] },
         "UserDescription": "TestDescription2", 
         "PropertyTypeCategoryId": "01004016-38a7-11d8-a902-0050bf427e8f",
         "PropertyTypePluginTypeEnum": "String" 
       }
       ]
    }

    Response:

    { }
    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

    Property type not found {propertyTypeId} (10034)

    ServiceException

    Invalid Input {parameterValue} for {parmaterName} (10118)

    ServiceException

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

    ServiceException

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

    ServiceException

    Can not delete or deactivate property {propertyTypeId} because it is still in use in {name} {folderId} (10225)

    ServiceException

    Can not delete or deactivate a system property {propertyTypeId} (10227)

    ServiceException

    Can not delete or deactivate property {propertyTypeId}, because it is still assigned to dossier config {dossierConfigId} (10337)

    ServiceException

    EnumConfiguration list does not match (10236)

    ServiceException

    Not allowed (10014)

    ServiceException

    Input contains invalid characters (10255)

    Back to top Copyright © Kendox