---
title: "Copy Node"
description: "Effortlessly duplicate nodes and their children within a content graph with our Copy Node functionality. (Gitana 4.0)"
product: "Gitana"
version: "4.0"
url: "/documentation/gitana/4.0/engine/behaviors/actions/copy-node"
---

# Copy Node

ID: `copyNode`

Makes a copy of a node and any of its owned children to a new location in the content graph.

### Configuration

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| repositoryId | text | true |  | The ID of the repository of the source node. |
| branchId | text | true |  | The ID of the branch of the source node. |
| nodeId | text | true |  | The ID of the source node. |
| targetRepositoryId | text | true |  | The ID of the repository of the target parent node. |
| targetBranchId | text | true |  | The ID of the branch of the target parent node. |
| targetNodeId | text | true |  | The ID of the target parent node. |
| targetAssociationType | text | true |  | The type of association to create between the target parent node and the copied node. For child relationships, you will want to use `a:child` whereas linked relationships you should use `a:linked`. |
| targetProperties | object | false |  | An optional object containing key/value pairs to be written into the newly created node. This is used to set properties on the newly created copy and is typically utilized to set properties like the `title` for the newly copied node. |
| includeFolders | boolean | false |  | Whether to copy the entire parent folder hierarchy for a node as well as the node itself. This can only be used if copying into a branch. It provides a way to copy an entire folder structure from one branch to another. |
| strategy | string | COPY\_EVERYTHING |  | Either \`CLONE\`, \`COPY\_EVERYTHING\` or \`COPY\_TOP\`. |

## See Also

- The [Copy Node](/documentation/gitana/4.0/engine/workflow/workflow-handlers/copy-node.md) workflow handler
