---
title: "Move or copy a hosted asset"
method: POST
path: "/groups/{groupId}/apps/{appId}/hosting/assets"
tags: ["hosting"]
---

# Move or copy a hosted asset

`POST /groups/{groupId}/apps/{appId}/hosting/assets`

Move or copy a hosted asset to a new resource path.

## Request body

- object
  - `move_from` string — The current resource path of the asset to move. Must be used with `move_to`.
  - `move_to` string — The resource path to which the asset will move. Must be used with `move_from`.
  - `copy_from` string — The current resource path of the asset to copy. Must be used with `copy_to`.
  - `copy_to` string — The resource path to which the asset will be copied. Must be used with `copy_from`.

## Response `204`

Successfully moved/copied the hosted asset.

---

[API](https://skmtc.net/mongodb/apis/mongodb-atlas-app-services-admin-api.md) · [All operations](https://skmtc.net/mongodb/apis/mongodb-atlas-app-services-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mongodb/mongodb-atlas-app-services-admin-api/revisions/1365ab72bc03/schema)
