Move Resource

Last update:2025-08-20 10:34:45

This interface is used to move specified resources from the source space to the target space on the object storage platform, or to rename resources within the same space. If there is a resource with the same name in the target space, the old file will be directly overwritten.

Note: If an m3u8 file is moved, the ts files will not be moved simultaneously.

Request Description

Request Path

POST /move/{param_src}/{param_dst}
Host: <MgrDomain>
Authorization: <AccessToken>

Note: param_src is the source file of the move operation, indicating the current location of the resource to be moved;
param_dst is the target file of the move operation, specifying the new location or new name of the resource after being moved.

{param_src}and {param_dst}generation rules refer to EncodeEntryURI format .

Header Description

Parameter Required Description
Host Yes Management domain name,which can be obtained on the Bucket Overview interface of the Console.
Authorization Yes Manage credentials .

Response Description

  • If the request is successful, a Jsonstring with the following content is returned:
{
    "message":   "OK",
    "code": 200
}
Field name Required Description
message no Prompt message for successful file move
code Yes The request returns the status code, see HTTP response status code
  • If the request fails, a JSONstring with the following content is returned:
{
    "code":     "<code string>",
    "message":  "<ErrMsg string>"
}
Field name Required Description
code Yes HTTP request response code, see HTTP response status code
message no Failed to move files

Example

curl -v -X POST -H "Authorization:86622e227a50d49d858c2494a935bc2e4ac543a7:MzBiOWNlOTZhYzk0NDM4ZWVkMDJmOTBhMzI0MTM5NjkxMDdhNDNkMA==" --url "http://mgrDomain/move/aW1hZ2VzOmdqaF9zeW4xLnR4dA==/aW1hZ2VzOmdqaF9zeW4xX21vdmUudHh0"
Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!