The write-file command writes or appends text to a file in Block Storage.
JSON Input Data Format

    {
        "id": string,
        "name": string,
        "path": string,
        "filename": string,
        "cloudid": string,
        "lines": string,
        "append": boolean
    }

id * | Specifies the ID of the Block Storage.
name * | Specifies the name of the Block Storage.
path * | Specifies the path of the location where the file will be written.
filename * | Specifies the filename.
cloudid * | Specifies the cloud ID hosting the Block Storage.
lines * | Specifies the lines of text that will be written to the file.
append | Specifies whether the lines of text will be appended to the file.

* Indicates a mandatory field.

Code Snippets
Here are several code snippets provided for your direct use. Simply select your preferred tool/language by clicking on it.
Successful Response

    {
        "result": "OK",
        "payload": "The process was successfully completed"
    }

Failed Response

    {
        "result": "ERR",
        "message": "Error message ..."
    }