The upload-file command is not supported by this API. Instead, you can utilize another API for the intended operation.

JSON Input Data Format
{
    "id": string,
    "name": string,
    "path": string,
    "operator": string,
    "cloudnode": string
}
id * Specifies the ID of the Block Storage.
name * Specifies the name of the Block Storage.
path * Specifies the directory path where the file will be uploaded.
operator * This API requires you to separately specify your account ID.
cloudnode * Specifies the cloud ID hosting the Block Storage.
* Indicates a mandatory field.

Code Snippet
Below is a NodeJS code snippet provided for your direct use:

Successful Response
{
    "result": "OK",
    "payload": "Uploaded filename.txt successfully"
}

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