Skip to main content
Version: 6.0.0

SysTriggerCampaignForUser

Triggers a campaign scenario for a specific player, optionally bypassing normal eligibility constraints. The target player must have isTester=true on their profile. The campaign endAt is always respected.

ServiceOperation
campaignSYS_TRIGGER_CAMPAIGN_FOR_USER

Method Parameters

ParameterDescription
profileIdThe profile ID of the player to trigger the campaign for. Player must have isTester=true on their profile.
campaignCodeThe campaign code to trigger for the player.
optionsJsonOptional control flags. ignoreEnabled (boolean, default false): allow triggering even if campaign is disabled. ignoreScheduleStart (boolean, default false): allow triggering before campaign startAt. ignoreControl (boolean, default false): exclude control scenario from weighted assignment. scenarioCode (string): if specified, assign this specific scenario instead of weighted assignment.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"campaignCode": "CHRISTMAS2026",
"scenarioCode": "a"
},
"status": 200
}
Common Error Code

Status Codes

CodeNameDescription
41060CAMPAIGN_SYS_TRIGGER_CAMPAIGN_FOR_USER_ERRORTrigger failed — campaign disabled, has not started, has ended, player is not a tester, or player is already enrolled in a different scenario.
40206BILLING_PLAN_INCLUDES_CAMPAIGNBilling plan does not include the Campaign feature.