---
title: "Copy a site"
method: PUT
path: "/api/v1/site/_copy"
tags: ["Site"]
---

# Copy a site

`PUT /api/v1/site/_copy`

Creates a new site by copying an existing one. Optionally copies templates, containers, folders, links, content on pages, content on site, site variables, and content types based on the provided copy options. Asset copying runs as a background job. Requires an Enterprise license.

## Response `200`

Site copied successfully and background asset copy initiated

- ResponseEntitySiteView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` object
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `400` — Invalid copy parameters
- `401` — Unauthorized access
- `403` — User does not have permission or missing Enterprise license
- `404` — Source site 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)
