Skip to main content
POST
Add components to a component reference list

Authorizations

Authorization
string
header
required

Path Parameters

component_id
string
required
setting_name
string
required

Body

application/json
component_ids
string[]
required

The components to add to this reference. Every component already selected stays selected, and naming one that is already selected changes nothing. Every added id must be eligible for this reference: inside the setting's boundary, carrying the required component types, and not excluded by a selectable filter.

The components to add to this reference. Every component already selected stays selected, and naming one that is already selected changes nothing. Every added id must be eligible for this reference: inside the setting's boundary, carrying the required component types, and not excluded by a selectable filter.

variant
string

The setting value variant the selection is added to. Defaults to default.

Response

The setting after the components were added, in the same shape GET and PUT return.

Stored campaign component component reference variable definition. Fields description and unmatched_description are unevaluated and appear in buildtime-evaluatable form.

description
required

The description as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use CampaignBuildtimeContext.

display_name
string
required
name
string
required
priority
string
required
Example:

"10"

tags
string[]
required
type
enum<string>
required
Available options:
COMPONENT_REFERENCE,
COMPONENT_REFERENCE_LIST
boundary
ANCESTOR_TYPE · object
required

Boundary that limits where selectable components are resolved from.

component_type
string
required

Component type that can be selected by this variable.

lookup_strategy
CAMPAIGN_PATH · object
required

Lookup strategy used to match selectable components.

selectable_filters
(COMPONENT_TYPE · object | EXPRESSION · object | FACET · object)[]
required

Filters that narrow the components available for selection.

source
enum<string>
required

Where this setting takes its value from. LOCAL uses the values stored on this component. INHERITED uses the same-named setting of the nearest ancestor component that is not itself INHERITED. PARAMETER uses the same-named parameter of the socket this component is installed into. For an INHERITED setting, values shows what is stored on this component, not the value in effect; the built setting reports that.

Available options:
INHERITED,
LOCAL,
PARAMETER
unmatched_description
required

Description shown when a saved reference no longer matches a selectable component. Buildtime expressions use CampaignBuildtimeContext.

values
object
required

Open map of setting values keyed by value key. There is no fixed or maximum number of keys. Any string key may be present; each value uses the same shape for this setting's type. The properties listed here are common examples only and are not required.