Skip to main content
PUT
Update a has-prior-reward trigger

Authorizations

Authorization
string
header
required

Path Parameters

campaignId
string
required
version
string
required
Pattern: (/version/.+)?
controllerId
string
required
triggerId
string
required

Body

application/json

Body of a PUT /v2/campaigns/{campaignId}{version:(/version/.+)?}/controllers/{controllerId}/triggers/has-prior-rewards/{triggerId} request.

component_ids
string[]
component_references
object[]
count_matches

Choose between static or dynamic count matches

count_max

Choose between static or dynamic count max

count_min

Choose between static or dynamic count min

enabled

Choose between static or dynamic enabled

filter_expression

Choose between static or dynamic filter expression

filter_expressions
string[]
filter_face_value_types

Choose between static or dynamic filter face value types

Available options:
AUD,
BRL,
CAD,
CNY,
EUR,
GBP,
HKD,
INR,
JPY,
KRW,
MONTH,
MXN,
NZD,
PERCENT_OFF,
POINTS,
TRY,
TWD,
USD
filter_max_age

Choose between static or dynamic filter max age

Pattern: ^[-+]?P(?:(?:[-+]?[0-9]+D)(?:T(?=(?:[-+]?[0-9]+H|[-+]?[0-9]+M|[-+]?[0-9]+(?:[.,][0-9]*)?S))(?:[-+]?[0-9]+H)?(?:[-+]?[0-9]+M)?(?:[-+]?[0-9]+(?:[.,][0-9]*)?S)?)?|T(?=(?:[-+]?[0-9]+H|[-+]?[0-9]+M|[-+]?[0-9]+(?:[.,][0-9]*)?S))(?:[-+]?[0-9]+H)?(?:[-+]?[0-9]+M)?(?:[-+]?[0-9]+(?:[.,][0-9]*)?S)?)$
Example:

"PT42S"

filter_max_date

Choose between static or dynamic filter max date

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"

filter_min_age

Choose between static or dynamic filter min age

Pattern: ^[-+]?P(?:(?:[-+]?[0-9]+D)(?:T(?=(?:[-+]?[0-9]+H|[-+]?[0-9]+M|[-+]?[0-9]+(?:[.,][0-9]*)?S))(?:[-+]?[0-9]+H)?(?:[-+]?[0-9]+M)?(?:[-+]?[0-9]+(?:[.,][0-9]*)?S)?)?|T(?=(?:[-+]?[0-9]+H|[-+]?[0-9]+M|[-+]?[0-9]+(?:[.,][0-9]*)?S))(?:[-+]?[0-9]+H)?(?:[-+]?[0-9]+M)?(?:[-+]?[0-9]+(?:[.,][0-9]*)?S)?)$
Example:

"PT42S"

filter_min_date

Choose between static or dynamic filter min date

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"

filter_names

Choose between static or dynamic filter names

filter_reward_supplier_ids

Choose between static or dynamic filter reward supplier ids

filter_scope

Choose between static or dynamic filter scope

Available options:
CAMPAIGN,
CLIENT,
JOURNEY,
PROGRAM
filter_states

Choose between static or dynamic filter states

Available options:
CANCELED,
EARNED,
FAILED,
FULFILLED,
REDEEMED,
REVOKED,
SENT
filter_tags

Choose between static or dynamic filter tags

negated

Choose between static or dynamic negated

parent_trigger_group_name

Choose between static or dynamic parent trigger group name

sum_of_face_value_max

Choose between static or dynamic sum of face value max

sum_of_face_value_min

Choose between static or dynamic sum of face value min

tax_year_start

Choose between static or dynamic tax year start

Pattern: ^--(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$
Example:

"--10-24"

trigger_description

Choose between static or dynamic trigger description

trigger_name

Choose between static or dynamic trigger name

trigger_phase

Choose between static or dynamic trigger phase

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.

negated

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

parent_trigger_group_name

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

trigger_description

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

trigger_id
string
trigger_name

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

trigger_phase

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

Available options:
MATCHING,
QUALIFYING,
QUALITY
trigger_type
enum<string>
Available options:
HAS_PRIOR_REWARD
count_matches

The count matches as configured: a literal value, or an expression (type:string) when defined dynamically.

count_max

The count max as configured: a literal value, or an expression (type:string) when defined dynamically.

count_min

The count min as configured: a literal value, or an expression (type:string) when defined dynamically.

filter_expression

The filter expression as configured: a literal value, or an expression (type:string) when defined dynamically.

filter_expressions
string[]
filter_face_value_types

The filter face value types as configured: a literal value, or an expression (type:string) when defined dynamically.

Available options:
AUD,
BRL,
CAD,
CNY,
EUR,
GBP,
HKD,
INR,
JPY,
KRW,
MONTH,
MXN,
NZD,
PERCENT_OFF,
POINTS,
TRY,
TWD,
USD
filter_max_age

The filter max age as configured: a literal value, or an expression (type:string) when defined dynamically.

Pattern: ^[-+]?P(?:(?:[-+]?[0-9]+D)(?:T(?=(?:[-+]?[0-9]+H|[-+]?[0-9]+M|[-+]?[0-9]+(?:[.,][0-9]*)?S))(?:[-+]?[0-9]+H)?(?:[-+]?[0-9]+M)?(?:[-+]?[0-9]+(?:[.,][0-9]*)?S)?)?|T(?=(?:[-+]?[0-9]+H|[-+]?[0-9]+M|[-+]?[0-9]+(?:[.,][0-9]*)?S))(?:[-+]?[0-9]+H)?(?:[-+]?[0-9]+M)?(?:[-+]?[0-9]+(?:[.,][0-9]*)?S)?)$
Example:

"PT42S"

filter_max_date

The filter max date as configured: a literal value, or an expression (type:string) when defined dynamically.

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"

filter_min_age

The filter min age as configured: a literal value, or an expression (type:string) when defined dynamically.

Pattern: ^[-+]?P(?:(?:[-+]?[0-9]+D)(?:T(?=(?:[-+]?[0-9]+H|[-+]?[0-9]+M|[-+]?[0-9]+(?:[.,][0-9]*)?S))(?:[-+]?[0-9]+H)?(?:[-+]?[0-9]+M)?(?:[-+]?[0-9]+(?:[.,][0-9]*)?S)?)?|T(?=(?:[-+]?[0-9]+H|[-+]?[0-9]+M|[-+]?[0-9]+(?:[.,][0-9]*)?S))(?:[-+]?[0-9]+H)?(?:[-+]?[0-9]+M)?(?:[-+]?[0-9]+(?:[.,][0-9]*)?S)?)$
Example:

"PT42S"

filter_min_date

The filter min date as configured: a literal value, or an expression (type:string) when defined dynamically.

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"

filter_names

The filter names as configured: a literal value, or an expression (type:string) when defined dynamically.

filter_reward_supplier_ids

The filter reward supplier ids as configured: a literal value, or an expression (type:string) when defined dynamically.

filter_scope

The filter scope as configured: a literal value, or an expression (type:string) when defined dynamically.

Available options:
CAMPAIGN,
CLIENT,
JOURNEY,
PROGRAM
filter_states

The filter states as configured: a literal value, or an expression (type:string) when defined dynamically.

Available options:
CANCELED,
EARNED,
FAILED,
FULFILLED,
REDEEMED,
REVOKED,
SENT
filter_tags

The filter tags as configured: a literal value, or an expression (type:string) when defined dynamically.

sum_of_face_value_max

The sum of face value max as configured: a literal value, or an expression (type:string) when defined dynamically.

sum_of_face_value_min

The sum of face value min as configured: a literal value, or an expression (type:string) when defined dynamically.

tax_year_start

The tax year start as configured: a literal value, or an expression (type:string) when defined dynamically.

Pattern: ^--(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$
Example:

"--10-24"