Add File Json

Add a file to the workflow using base64 encoded file data in jason post

Request

POST https://api.cloudplan.net/api/workflow/add_file

{
    "cp_id": "5F22DEFB0F61A92B7BA4621664C62711",
    "file_name": "NameOfFile.txt",
    "file_data": "QmFzZTY0IGVuY29kZWQgZmlsZSBjb250ZW50", //Base64 encoded file content
}

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