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

  • {"workflow
    id:6686}

  • Creating the process with workflow_id and setting custom data via doc_ids ( Note : Multiple doc ids to be separated with coma)

  • {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

    KeyDatatypeRequiredDescription
    Content-Typestring
    Acceptstring

    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"}]}