Creates a draft process.
POST {{baseUrl}}/v2/draftprocesses
Creates a draft process and optional custom data can be set.
When request has only workflowid ,it creates temporary workflow based on the workflowid .
If request is having optional form param docids ,api sets the custom data to process created by workflowid .
The following examples will assume that there is a workflowid 6686 and docids 384,9684
- Creating the process with workflowid
- Creating the process with workflow_id and setting custom data via doc_ids ( Note : Multiple doc ids to be separated with coma)
{"workflow
id:6686}
{workflowid:6686,
docids:
384,9684"}
Request Body
[{"name"=>"workflow_id", "value"=>"86420742", "datatype"=>"number"}, {"name"=>"doc_ids", "value"=>"commodo velit magna nis", "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":[{"draftprocess_id":-57986994,"workflow_type":"sit irure"},{"draftprocess_id":50052801,"workflow_type":"adipisicing p"}]}