Search Results for

    Show / Hide Table of Contents

    Method UpdateLifeCycleState

    UpdateLifeCycleState(String, LifeCycleStateContract)

    Update a life cycle state

    Declaration
    void UpdateLifeCycleState(string connectionId, LifeCycleStateContract lifeCycleState)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    LifeCycleStateContract lifeCycleState

    LifeCycleState to update

    Remarks
    • You need "Access to scheme" access right (01002060-38a7-11d8-a902-0050bf427e8f). See also GetUserAdminAccessRights(String, String)
    • You need "Access to life cycles" access right (CA3558B8-F52F-447F-B2C3-2050176475FC). See also GetUserAdminAccessRights(String, String)
    • You need "Modify life cycle" access right (75774EA6-63EB-46BC-8D1A-9F56CFEBF0C8). See also GetUserAdminAccessRights(String, String)
    Examples

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

    Example for update a life cycle state.

    {
       "connectionId": "eb5718e6-8fd6-460b-9da3-4fb0434e81a8",
       "lifeCycleState": {
         "Id": "81e75c5b-e9e0-e911-a94b-00155d290a08",
         "Key": "Lifecycle_test",
         "LifeCycleProtections": [{
          "DeleteAfterExpiration": false,
          "Id": "8be75c5b-e9e0-e911-a94b-00155d290a08",
          "ProtectAnnotationChange": true,
          "ProtectCheckOut": true,
          "ProtectContentChange": true,
          "ProtectDelete": false,
          "ProtectPropertyChange": true,
          "ProtectProtectionDomainChange": true,
          "ProtectionDurationTicks": 1576800000000000,
          "Index": 0,
          "ProtectionDurationTimeInYears": 5,
          "ProtectionDurationTimeInDays": 1825,
          "ProtectionDurationTimeInMinutes": 2628000,
          "ProtectionDurationInputSelection": "0",
          "ProtectionDurationOutputValue": "5 Jahre",
          "__KDX_COL_selectedThroughCheckbox": false }],
        "Name": {
          "Values": [{
            "Culture": "de",
            "Text": "Lifecycle_test" }, {
            "Culture": "en",
            "Text": "Lifecycle_test" }, {
            "Culture": "fr",
            "Text": "Lifecycle_test" }] },
        "NextAllowedLifeCycleStateIds": [],
        "NextAutomaticLifeCycleStateId": null,
        "NextCheckOutLifeCycleStateId": null,
        "NextInfoStoreId": "e46bc061-b7cf-e911-a939-00155d290a08" }
    }

    Response:

    { }
    Exceptions
    Type Condition
    ServiceException

    The connection id {connectionId} isn't valid or has expired (10008)

    ServiceException

    Life cycle state not found {lifeCycleStateId} (10039)

    ServiceException

    Name is not unique for culture ({culture}): {name} (10066)

    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