Add File¶
Add a file to the workflow using binary file data in post
Request¶
POST https://api.cloudplan.net/api/workflow/add_file
<binary data>
Additional Request Headers¶
{
"cp_id": "5F22DEFB0F61A92B7BA4621664C62711",
"file_name": "NameOfFile.txt"
}
Reply¶
{
"status": 200,
"result": true,
"params": {
},
"data": {
"file_cp_id": "5F22DEFB0F61A92B7BA4621664C62711",
"file_name": "NameOfFile.txt"
}
}
Error Codes¶
workflow_cp_id_not_given
workflow_not_found
workflow_not_owned
workflow_not_draft
no_file_data_provided
no_file_name_provided
file_name_has_no_extension
file_type_not_allowed
pdf_conversion_of_file_not_possible
file_can_not_be_saved