Skip to main content
POST
Create a score trigger

Authorizations

Authorization
string
header
required

Path Parameters

campaignId
string
required
controllerId
string
required

Body

application/json

Body of a POST /v2/campaigns/{campaignId}{version:(/version/.+)?}/controllers/{controllerId}/triggers/scores request.

cause_event_name
string
required
channel
string | null
component_ids
string[]
component_references
object[]
enabled

Choose between static or dynamic enabled. Buildtime expressions use ControllerBuildtimeContext.

negated

Choose between static or dynamic negated. Buildtime expressions use ControllerBuildtimeContext.

parent_trigger_group_name

Choose between static or dynamic parent trigger group name. Buildtime expressions use ControllerBuildtimeContext.

score_result
enum<string> | null
Available options:
FAIL,
PASS
trigger_description

Choose between static or dynamic trigger description. Buildtime expressions use ControllerBuildtimeContext.

trigger_name

Choose between static or dynamic trigger name. Buildtime expressions use ControllerBuildtimeContext.

trigger_phase

Choose between static or dynamic trigger phase. Buildtime expressions use ControllerBuildtimeContext.

Available options:
MATCHING,
QUALIFYING,
QUALITY

Response

Successful response

component_ids
string[]
component_references
object[]
enabled

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

negated

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

parent_trigger_group_name

The parent trigger group name as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

trigger_description

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

trigger_id
string
trigger_name

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

trigger_phase

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

Available options:
MATCHING,
QUALIFYING,
QUALITY
trigger_type
enum<string>
Available options:
SCORE
cause_event_name
string
channel
string
score_result
string