移动或复制托管资产 已弃用

发布 /groups/{groupId}/apps/{appId}/hosting/assets

将托管资产移动或复制到新的资源路径。

路径参数

application/json

body 必需

托管资产文件及其元数据。(必须使用 Content-Type: multipart/mixed

  • move_from 字符串

    要移动的资产的当前资源路径。必须与 move_to 一起使用。

  • move_to 字符串

    资产将移动到的资源路径。必须与 move_from 一起使用。

  • copy_from 字符串

    待复制资产的当前资源路径。必须与 copy_to 一起使用。

  • copy_to 字符串

    资产将复制到的资源路径。必须与 copy_from 一起使用。

响应

  • 204

    已成功移动/复制托管资产。

POST /groups/{groupId}/apps/{appId}/hosting/assets
curl \
 --request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/hosting/assets' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"move_from":"string","move_to":"string","copy_from":"string","copy_to":"string"}'
请求示例
{
  "move_from": "string",
  "move_to": "string",
  "copy_from": "string",
  "copy_to": "string"
}