Skip to main content
POST
Duplicate a component by path

Authorizations

Authorization
string
header
required

Path Parameters

component_path
string
required

The component to copy, as a path that starts at account or client:. Names a component by its chain of parents. A path starts at account (your account), client:<short_name> or client:@<client_id> (another client's account), or a component id. Each /-separated segment after the start is the name of a child of the component before it. parent.socket/child is the child in that socket of the parent, and parent/child is a child in any socket or in none, so a socket is needed only when two children share a name. A path always ends in a component, never in a socket. A leading / is optional.

A campaign is named by its campaign name turned into a component name: spaces become _, characters other than letters, digits, _ and - are dropped, and letters are lower case. Spring / Q2 is spring__q2.

A relative path starts at a given component instead. A leading .socket is a socket of that component: .roles/advocate.flows/share.

In a URL, a /v2/components operation takes its component as /v2/components/{component_id}/... or /v2/components/{component_path}/-/..., where /-/ ends the path, such as /v2/components/account.programs/spring/-/duplicate.

Example:

"account.programs/spring.campaigns/spring_q2"

Body

application/json
target_component_path
string
required

Names a component by its chain of parents. A path starts at account (your account), client:<short_name> or client:@<client_id> (another client's account), or a component id. Each /-separated segment after the start is the name of a child of the component before it. parent.socket/child is the child in that socket of the parent, and parent/child is a child in any socket or in none, so a socket is needed only when two children share a name. A path always ends in a component, never in a socket. A leading / is optional.

A campaign is named by its campaign name turned into a component name: spaces become _, characters other than letters, digits, _ and - are dropped, and letters are lower case. Spring / Q2 is spring__q2.

A relative path starts at a given component instead. A leading .socket is a socket of that component: .roles/advocate.flows/share.

In a URL, a /v2/components operation takes its component as /v2/components/{component_id}/... or /v2/components/{component_path}/-/..., where /-/ ends the path, such as /v2/components/account.programs/spring/-/duplicate.

Example:

"account.programs/spring.campaigns/spring_q2"

overrides
object

A partial configuration applied to the copy, not the source, in the same change as the copy. Its properties configure the copied component, and components configures existing descendants. Left out, the copy matches the source. A failure leaves no copy.

target_socket_name
string

The socket of the target to install the copy into, such as programs. Left out, the copy is a child of the target in no socket.

Response

Successful response

Stored component v2 definition. Field display_name is unevaluated and appears in buildtime-evaluatable form.

assets
object[]
required

The component's assets.

component_references
object[]
required

The component's parents, each with the sockets of that parent the component is in.

created_date
string
required

RFC 3339 or RFC 9557 date-time with a numeric UTC offset and an optional IANA time-zone suffix in square brackets. Precision up to milliseconds.

Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?(Z|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9])(\[[^\]]+\])?$
Example:

"2025-10-24T02:00:00-07:00"

description
string
required

The component's description, if it has one.

display_name
required

The component's display name. Buildtime expressions use CampaignBuildtimeContext.

facets
object[]
required

The component's facets.

id
string
required
read-only

The component's id.

install
required

The script that runs when the component is installed or copied, if it has one. Installtime expressions use ComponentInstalltimeContext.

installed_into_socket
string
required

The socket of its parent the component was installed into, if any.

name
string
required

The component's name, the one component paths use, such as share in .roles/advocate.flows/share.

origin
object
required

The component this one was copied from, at the version it had at the copy. A duplicate sets it. A copy of a copy in the same client keeps the first copy's origin. A change to the component's types, its install, its first-level elements other than child components, or the account-level elements it uses clears it. The component upgrade does not clear it. A component with no origin is offered no upgrade.

owner
enum<string>
required

Who owns the component.

Available options:
CLIENT,
EXTOLE,
EXTOLE_BETA
settings
(ADMIN_ICON · object | AUDIENCE_ID · object | AUDIENCE_ID_LIST · object | BOOLEAN · object | BROWSER_SIDE_JAVASCRIPT · object | CLIENT_DOMAIN_ID · object | CLIENT_DOMAIN_ID_LIST · object | CLIENT_KEY · object | CLIENT_KEY_FLOW · object | COLOR · object | COMPONENT_ID · object | COMPONENT_REFERENCE · object | COMPONENT_REFERENCE_LIST · object | COMPONENT_SETTING_LOOKUP · object | CSS · object | DATE_TIME · object | DELAY · object | DELAY_LIST · object | ENUM · object | ENUM_LIST · object | EXTOLE_CLIENT_KEY · object | FONT · object | GLOB_COMPONENT_PATH · object | HTML · object | IMAGE · object | INTEGER · object | INTEGER_LIST · object | JSON · object | MULTI_SOCKET · object | PARTNER_ENUM · object | PARTNER_ENUM_LIST · object | PERSON_KEY_NAME · object | REWARD_SUPPLIER_ID · object | REWARD_SUPPLIER_ID_LIST · object | SFTP_DIRECTORY · object | SOCKET · object | STRING · object | STRING_LIST · object | STRING_MAP · object | TRIGGER_CONFIGURATION · object | URL · object | WEBHOOK_ID · object)[]
required

The component's settings.

tags
string[]
required

The component's tags.

types
string[]
required

The component types the component implements.

updated_date
string
required

RFC 3339 or RFC 9557 date-time with a numeric UTC offset and an optional IANA time-zone suffix in square brackets. Precision up to milliseconds.

Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?(Z|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9])(\[[^\]]+\])?$
Example:

"2025-10-24T02:00:00-07:00"

upload_version
string
required

The version of the creative source the component was uploaded from, if it was uploaded.

version
integer<int32>
required

The component's version, which increases with each change to it.