---
title: "Move files or folders to a target folder"
method: POST
path: "/dam/folders/{folder_id}/move-to"
tags: ["DAM: Folders"]
---

# Move files or folders to a target folder

`POST /dam/folders/{folder_id}/move-to`

## Request

- Base URL: `https://api.kontainer.com/jsonapi/v2`
- URL: `https://api.kontainer.com/jsonapi/v2/dam/folders/{folder_id}/move-to`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/kontainer/apis/kontainer-api-documentation/docs/dam/folders/:folder_id/move-to/post.ts> (a function with typed inputs; its response is checked against the schema)

Moves multiple files and/or folders into the destination folder specified. Process is run synchronously, so response time is potentially long. Only 'file' and 'folder' resources can be moved into a folder.

## Path parameters

- `folder_id` string, required

## Request body

- MoveToFolderRequest
  - `data` object
    - `type` string
    - `relationships` object
      - `sources` object
        - `data` object[]
          - `type` string
          - `id` string
  - `meta` object
    - `file_conflict_resolution` 'skip' | 'overwrite' | 'rename': How to handle file conflicts when moving. 'skip' will skip conflicting files, 'overwrite' will delete the existing file and add the moved file, 'rename' will rename the moved file to avoid conflicts (default)
    - `allow_archive_move` boolean: Allow archiving or unarchiving via move operation. Please be aware of the consequences of archiving files.

## Response `200`

Move completed successfully

- MoveToFolderResponse
  - `meta` object
    - `state` string
    - `summary` object
      - `moved_folder_count` integer
      - `moved_file_count` integer

## Other responses

- `401`: Unauthorized
- `404`: Folder not found
- `422`: Invalid request

---

[API](https://skmtc.dev/kontainer/apis/kontainer-api-documentation.md) - [All operations](https://skmtc.dev/kontainer/apis/kontainer-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/kontainer/apis/kontainer-api-documentation/revisions/b80a5167e09a?raw)
