---
title: "Copy a collection (recursively) into another collection"
method: POST
path: "/v1/collections/{collection_id}/subcollections/"
---

# Copy a collection (recursively) into another collection

`POST /v1/collections/{collection_id}/subcollections/`

## Request

- Base URL: `https://app.iconik.io/API/assets`
- URL: `https://app.iconik.io/API/assets/v1/collections/{collection_id}/subcollections/`
- Auth: none declared. Required headers: `App-ID`, `Auth-Token`
- TypeScript: <https://skmtc.dev/iconik/apis/iconik-assets/docs/v1/collections/:collection_id/subcollections/post.ts> (a function with typed inputs; its response is checked against the schema)

Required roles:
 - can_write_collections

## Path parameters

- `collection_id` string, required

## Query parameters

- `copy_acl` boolean
- `copy_keyframes` boolean

## Headers

- `App-ID` string, required
- `Auth-Token` string, required

## Request body

- CollectionContentSchema
  - `collection_id` string, uuid
  - `date_created` string, date-time
  - `object_id` string, uuid, required
  - `object_type` string, required

## Response `201`

Returns a created collection

- CollectionSchema
  - `category` string, nullable
  - `created_by_user` string, uuid
  - `custom_keyframe` string, uuid, nullable
  - `custom_order_status` 'DISABLED' | 'ENABLING' | 'ENABLED'
  - `custom_poster` string, uuid, nullable
  - `date_created` string, date-time
  - `date_deleted` string, date-time
  - `date_modified` string, date-time
  - `date_viewed` string, date-time
  - `deleted_by_user` string, uuid
  - `external_id` string, nullable
  - `favoured` boolean
  - `id` string, uuid
  - `in_collections` string[]
  - `is_root` boolean
  - `keyframe_asset_ids` string[]
  - `keyframes` object[]
  - `metadata` object
  - `object_type` string
  - `parent_id` string, uuid, nullable
  - `parents` string[]
  - `permissions` string[]
  - `position` integer
  - `project_id` string, uuid
  - `status` 'ACTIVE' | 'HIDDEN' | 'DELETED'
  - `storage_id` string, uuid, nullable
  - `title` string, required

## Other responses

- `400`: Bad request
- `401`: Token is invalid
- `403`: Permission denied
- `404`: Collection not found
- `default`: Error response

---

[API](https://skmtc.dev/iconik/apis/iconik-assets.md) - [All operations](https://skmtc.dev/iconik/apis/iconik-assets/llms.txt) - [OpenAPI document](https://skmtc.dev/iconik/apis/iconik-assets/revisions/62580d9e640e?raw)
