Start¶
Start a workflow from a draft. The draft has be owned by the user’s organization.
Request¶
POST https://api.cloudplan.biz/api/workflow/start
{
"cp_id": "5F367615C441F152C71B3BA5B49EB44E"
}
Reply¶
{
"status": 200,
"result": true,
"params": {
"cp_id": "5F367615C441F152C71B3BA5B49EB44E"
},
"data": {
"project_name": "alex template - 2020-08-14 13:31:33",
"cp_id": "5F367615C441F152C71B3BA5B49EB44E",
"project_type": "contract",
"created": 1597404693,
"status": "running",
"creator_cp_id": "5DF209F7C182BFB7ACE54ABBF22F0384",
"project_deadline": "",
"start_time": "",
"starter_cp_id": "5DF209F7C182BFB7ACE54ABBF22F0384",
"starter_email": "",
"target_folder_cp_id": "5E58D529AC4CCEFC31E8AAC9E32BCH77",
"signing_steps": [
[
{
"group_cp_id": "5F2BE9D8139E3C108775E690319D2E5B",
"token": "5F3D3C25A59952B168DDB5950C6CB4ED",
"name": "YO",
"rule": "must_sign"
}
]
],
"documents": [
{
"file_cp_id": "VGVZDGZPBGUTMTQ5",
"file_name": "Testfile-149Loremipsumdolorsitametconsect.pdf",
"folder_cp_id": "5ECE77176D70DAF6EFA685DBDA719957",
"file_options": []
},
{
"file_cp_id": "5F1AB1FD371382D05B88FD3FB0BBBA9D",
"file_name": "File-1",
"folder_cp_id": "plain",
"file_options": []
}
]
}
}
Error Codes¶
workflow_not_found
workflow_not_a_draft
invalid_cp_id