The move-file command facilitates the transfer of files and folders between different locations.

JSON Input Data Format
{
    "id": string,
    "name": string,
    "source": string,
    "destination": string,
    "cloudid": string
}
id * Specifies the ID of the bucket.
name * Specifies the name of the bucket.
source * Specifies the originating path of the files or folders that will be duplicated to the designated destination path.

You can also specify a source URL to download from, which can be an HTTP or S3 URL. For example:
  • use "https://mydomain.com/file.zip" to download from an HTTP server
  • use "s3ob://bucketname/file.zip" to download a single file from an Object Storage bucket
  • use "s3ob://bucketname/folder/" to download an entire folder from an Object Storage bucket
  • use "s3mb://bucketname/file.zip" to download a single from a Magna bucket
  • use "s3mb://bucketname/folder/" to download an entire folder from a Magna bucket
destination * Specifies the target path where the files and folders from the source will be replicated.

You can also specify an S3 destination URL to store to. For example:
  • use "s3ob://bucketname/file.zip" to store in an Object Storage bucket
  • use "s3mb://bucketname/file.zip" to store in a Magna bucket
cloudid * Specifies the {ANYNODE} ID hosting the bucket.
* 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 ..."
}