---
title: "Copy single page"
method: POST
path: "/wiki/rest/api/content/{id}/copy"
tags: ["Content - children and descendants"]
---

# Copy single page

`POST /wiki/rest/api/content/{id}/copy`

Copies a single page and its associated properties, permissions, attachments, and custom contents.
 The `id` path parameter refers to the content ID of the page to copy. The target of the page to be copied
 is defined using the `destination` in the request body and can be one of the following types.

  - `space`: page will be copied to the specified space as a root page on the space
  - `parent_page`: page will be copied as a child of the specified parent page
  - `parent_content`: page will be copied as a child of the specified parent content
  - `existing_page`: page will be copied and replace the specified page

By default, the following objects are expanded: `space`, `history`, `version`.

**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Add' permission for the space that the content will be copied in and permission to update the content if copying to an `existing_page`.

## Path parameters

- `id` string, required

## Query parameters

- `expand` string[]

## Request body

- CopyPageRequest
  - `copyAttachments` boolean — If set to `true`, attachments are copied to the destination page.
  - `copyPermissions` boolean — If set to `true`, page permissions are copied to the destination page.
  - `copyProperties` boolean — If set to `true`, content properties are copied to the destination page.
  - `copyLabels` boolean — If set to `true`, labels are copied to the destination page.
  - `copyCustomContents` boolean — If set to `true`, custom contents are copied to the destination page.
  - `destination` CopyPageRequestDestination, required — Defines where the page will be copied to, and can be one of the following types. - `parent_page`: page will be copied as a child of the specified parent page - `parent_content`: page will be copied as a child of the specified parent content - `space`: page will be copied to the specified space as a root page on the space - `existing_page`: page will be copied and replace the specified page
    - `type` 'space' | 'existing_page' | 'parent_page' | 'parent_content', required
    - `value` string, required — The space key for `space` type, and content id for `parent_page`, `parent_content`, and `existing_page`
  - `pageTitle` string — If defined, this will replace the title of the destination page.
  - `body` object — If defined, this will replace the body of the destination page.
    - `storage` ContentBodyCreate — This object is used when creating or updating content.
      - `value` string, required — The body of the content in the relevant format.
      - `representation` 'view' | 'export_view' | 'styled_view' | 'storage' | 'editor' | 'editor2' | 'anonymous_export_view' | 'wiki' | 'atlas_doc_format' | 'plain' | 'raw', required — The content format type. Set the value of this property to the name of the format being used, e.g. 'storage'.
    - `editor2` ContentBodyCreate — This object is used when creating or updating content.
      - `value` string, required — The body of the content in the relevant format.
      - `representation` 'view' | 'export_view' | 'styled_view' | 'storage' | 'editor' | 'editor2' | 'anonymous_export_view' | 'wiki' | 'atlas_doc_format' | 'plain' | 'raw', required — The content format type. Set the value of this property to the name of the format being used, e.g. 'storage'.

## Response `200`

Returned if the content is copied.

## Other responses

- `400` — Returned if; - destination or any of its fields are not specified. - destination.type is invalid. - sub-expansions limit exceeds.
- `401` — Returned if the authentication credentials are incorrect or missing from the request.
- `403` — Returned if the user does not have permission to create content at destination.
- `404` — Returned if; - the original page doesn't exist. - the destination page doesn’t exist. - the destination space doesn’t exist.

---

[API](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api.md) · [All operations](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/the-confluence-cloud-rest-api/versions/70088490f406/schema)
