Click or drag to resize

WorkflowServicesUpdateWorkstate Method


Updates an existing Workstate with new data

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.169
Syntax
public XHRServiceResponseGeneric<WorkstateSimpleInfo> UpdateWorkstate(
	WorkstateSimpleInfo data
)

Parameters

data
Type: WorkstateSimpleInfo

New information of the Workstate to be updated

Examples
Sample JSON input
JavaScript
{
    "data": {
        "id": "WorkStates/67",
        "name": "Translating",
        "desc": "Translating content to another language",
        "active": true
    }
}

Return Value

Type: XHRServiceResponseGenericWorkstateSimpleInfo

Information of updated Workstate

Examples
Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "name": "Translating",
        "id": "WorkStates\/67",
        "desc": "Translating content to another language",
        "active": true
    }
}
Remarks

If name is null or empty, returns error status.

If Workstate doesn't exist, returns error status.

If there is another Workstate that has the same name, returns error status.

See Also