The write-file command writes text to a file in a bucket.

JSON Input Data Format
{
    "id": string,
    "name": string,
    "path": string,
    "filename": string,
    "magnas3": string,
    "lines": string
}
id * Specifies the ID of the bucket.
name * Specifies the name of the bucket.
path * Specifies the path of the location where the file will be written.
filename * Specifies the filename.
magnas3 * Specifies the Magna-s3 ID hosting the bucket.
lines * Specifies the lines of text that will be written 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 ..."
}