Last update:2025-08-20 11:13:49
This interface provides copying the specified resource as a newly named resource on the cloud storage platform. If a resource with the same name exists in the target bucket, the old file will be overwritten directly.
Note: If the m3u8 file is copied, the ts file will not be copied at the same time.
Request Path
POST /copy/{param_src}/{param_dst}
Host: <MgrDomain>
Authorization: <AccessToken>
Note:
param_srcis the source file of the move operation, indicating the current location of the resource to be moved;
param_dstis 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 . |
Jsonstring with the following content is returned:{
"message": "OK",
"code": 200
}
| Field name | Required | Description |
|---|---|---|
| message | Yes | Prompt message for successful copying of files |
| code | Yes | The request returns the status code, see HTTP response status code |
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 | Yes | Error message when copying files failed |
curl -v -X POST -H "Authorization:86622e227a50d49d858c2494a935bc2e4ac543a7:OWE0M2UxMjMxZTg1NTJmMjdhYjk3ZDgyZDZkMmVhNWMxYzUzMGM0OQ==" --url "http://mgrDomain/copy/aW1hZ2VzOmdqaF9zeW4yLnR4dA==/aW1hZ2VzOmdqaF9zeW4yX2NvcHkudHh0"