Skip to main content
PUT
Update an earn-reward action

Authorizations

Authorization
string
header
required

Path Parameters

campaignId
string
required
controllerId
string
required
actionId
string
required

Body

application/json

Body of a PUT /v2/campaigns/{campaignId}{version:(/version/.+)?}/controllers/{controllerId}/actions/earn-rewards/{actionId} request.

component_ids
string[]
component_references
object[]
data
object
enabled

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

event_time

Choose between static or dynamic event time. Runtime expressions use RewardActionContext.

Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?Z$
Example:

"2025-10-24T09:00:00.000Z"

extra_data

Choose between static or dynamic extra data. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardActionContext.

polling_id
string
program_domain_id
string
quality
enum<string>
Available options:
ALWAYS,
HIGH,
LOW
reward_action_id

Choose between static or dynamic reward action id. Runtime expressions use RewardActionContext.

reward_name

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

reward_supplier_id

Choose between static or dynamic reward supplier id. Buildtime expressions use ControllerBuildtimeContext.

sandbox
string
slots

Choose between static or dynamic slots. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardActionContext.

tags

Choose between static or dynamic tags. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardActionContext.

value_of_event_being_rewarded

Choose between static or dynamic value of event being rewarded. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardActionContext.

Response

Successful response

action_id
string
action_type
enum<string>
Available options:
EARN_REWARD
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.

quality
enum<string>
Available options:
ALWAYS,
HIGH,
LOW
data
object
event_time

The event time as configured: a literal value, or an expression (type:string) when defined dynamically. Runtime expressions use RewardActionContext.

Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?Z$
Example:

"2025-10-24T09:00:00.000Z"

extra_data

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

reward_action_id

The reward action id as configured: a literal value, or an expression (type:string) when defined dynamically. Runtime expressions use RewardActionContext.

reward_name

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

reward_supplier_id

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

slots

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

tags

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

value_of_event_being_rewarded

The value of event being rewarded as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardActionContext.