Initiates a process from a draft process
PUT {{baseUrl}}/v2/draftprocesses/:draftprocess_id
Initiates or updates a workflow based on the provided action.
If action is initiate ,workflow intance will be created based on the draftprocessid passed in the path with comment as optional filed .
if action is formupate , data passed via values body parameters will be set to form data prior initiating the workflow .
Examples
- To initiating the workflow with comment as optional.
To prepare the workflow with empty values before initiating the workflow- To update the form of workflow before initiating the workflow
body:{action
:Initiate
,comment
:start
}
body : {action
:formUpdate
,values
:{WorkflowForm
:{}}}
body : {action
:formUpdate
,values
:{"WorkflowForm
1x4x1x2:
ABC"}}
Request Body
[{"name"=>"action", "value"=>"fugiat ut", "datatype"=>"string"}, {"name"=>"comment", "value"=>"amet aute culpa magna", "datatype"=>"string"}, {"name"=>"values", "value"=>"do ut ut", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"links":[{"data":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},{"data":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]}],"results":[{"custom_message":"in ex officia quis","process_id":84832660},{"custom_message":"irure Lorem","process_id":2349407}]}