WorkflowServicesUpdateWorkstate Method |
Namespace: IngeniuxCMService
public XHRServiceResponseGeneric<WorkstateSimpleInfo> UpdateWorkstate( WorkstateSimpleInfo data )
New information of the Workstate to be updated
{
"data": {
"id": "WorkStates/67",
"name": "Translating",
"desc": "Translating content to another language",
"active": true
}
}Information of updated Workstate
{
"code": 0,
"error": null,
"message": {
"name": "Translating",
"id": "WorkStates\/67",
"desc": "Translating content to another language",
"active": true
}
}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.