Rewards (QA)

Apply a one-click scenario preset

Changed on

Composes the qa/* primitives — does not reset the user first, except existing_user_historical_seed, which structurally needs to. Safe to layer onto a real user's existing state: a facet-only scenario (e.g. huddle_invited) only ever touches its own facet. See GET qa/scenarios for the full list.

post/api/rewards/admin/qa/scenario/{userId}

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/rewards/admin/qa/scenario/{userId}
  • Auth
    HTTP bearer

Path parameters

userIdnumber required

Request body

scenario'about_to_level_up' | 'level_up_with_pending_grant' | 'streak_one_day_from_milestone' | 'streak_choice_milestone_ready' | 'consent_prize_ready' | 'grant_expired' | 'grant_already_claimed' | 'goal_near_completion' | 'huddle_invited' | 'huddle_locked_out' | 'comeback_due' | 'existing_user_historical_seed' required
levelnumber

Used by level-related scenarios.

daysnumber

Used by streak-related scenarios.

catalogue_keystring

Used by grant/goal-related scenarios.

Changes