---
title: "Copies a container to the current host"
method: POST
path: "/api/v1/containers/{id}/_copy"
tags: ["Containers"]
---

# Copies a container to the current host

`POST /api/v1/containers/{id}/_copy`

Creates a copy of the specified container on the current host. The user must have backend access and appropriate permissions.

## Path parameters

- `id` string, required

## Response `200`

Container copied successfully

- ResponseEntityContainerView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` Container[]
    - `getiDate` string, date-time
    - `type` string
    - `owner` string
    - `inode` string
    - `identifier` string
    - `source` 'UNKNOWN' | 'DB' | 'FILE'
    - `title` string
    - `friendlyName` string
    - `modDate` string, date-time
    - `modUser` string
    - `sortOrder` integer
    - `showOnMenu` boolean
    - `code` string
    - `maxContentlets` integer
    - `useDiv` boolean
    - `preLoop` string
    - `postLoop` string
    - `notes` string
    - `hostId` string
    - `hostName` string
    - `variant` string
    - `versionType` string
    - `permissionId` string
    - `versionId` string
    - `working` boolean
    - `deleted` boolean
    - `archived` boolean
    - `live` boolean
    - `locked` boolean
    - `name` string
    - `permissionType` string
    - `idate` string, date-time
    - `categoryId` string
    - `new` boolean
    - `parents` object[]
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `400` — Bad request - Container ID is required
- `401` — Unauthorized - User not authenticated
- `403` — Forbidden - User lacks required permissions
- `404` — Container not found

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
