---
title: "Moves the asset."
method: PUT
path: "/api/apps/{app}/assets/{id}/parent"
tags: ["Assets"]
---

# Moves the asset.

`PUT /api/apps/{app}/assets/{id}/parent`

## Path parameters

- `app` string, required
- `id` string, required

## Request body

- MoveAssetDto
  - `parentId` string — The parent folder id.

## Response `200`

Asset moved.

- AssetDto
  - `_links` object, required — The links.
  - `id` string, required — The ID of the asset.
  - `parentId` string, required — The ID of the parent folder. Empty for files without parent.
  - `fileName` string, required — The file name.
  - `fileHash` string, nullable — The file hash.
  - `isProtected` boolean, required — True, when the asset is not public.
  - `slug` string, required — The slug.
  - `mimeType` string, required — The mime type.
  - `fileType` string, required — The file type.
  - `metadataText` string, required — The formatted text representation of the metadata.
  - `editToken` string, nullable — The UI token.
  - `metadata` object, required — The asset metadata.
  - `tags` string[], nullable — The asset tags.
  - `fileSize` integer, required — The size of the file in bytes.
  - `fileVersion` integer, required — The version of the file.
  - `type` 'Unknown' | 'Image' | 'Audio' | 'Video', required
  - `createdBy` string, required — The user that has created the schema.
  - `lastModifiedBy` string, required — The user that has updated the asset.
  - `created` string, date-time, required — The date and time when the asset has been created.
  - `lastModified` string, date-time, required — The date and time when the asset has been modified last.
  - `version` integer, required — The version of the asset.
  - `_meta` AssetMeta
    - `isDuplicate` string, required — Indicates whether the asset is a duplicate.
  - `isImage` boolean, required — Determines of the created file is an image.
  - `pixelWidth` integer, nullable — The width of the image in pixels if the asset is an image.
  - `pixelHeight` integer, nullable — The height of the image in pixels if the asset is an image.

## Other responses

- `400` — Asset request not valid.
- `404` — Asset or app not found.
- `500` — Operation failed.

---

[API](https://skmtc.net/squidex/apis/squidex-api.md) · [All operations](https://skmtc.net/squidex/apis/squidex-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/squidex/squidex-api/versions/b4a9b62f113a/schema)
