The write-file command is used to create or write to a file in the repository.

JSON Input Data Format
{
    "id": string,
    "branch": string,
    "filename": string,
    "lines": string
}
id * Specifies the ID of the repository.
branch * Specifies the name of the branch.
filename * Specifies the path and filename of the file. For example: /build/master-compose.yaml.
lines * Specifies the content to 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 ..."
}