Rewards (QA)

Seed real activity (water_logs) across the last N days

Changed on

Writes the one non-rewards table computeHistoricalStreak() reads, so POST qa/historical-seed/:userId has real history to walk. Not cleared by reset — re-running this clears its own prior seed first.

post/api/rewards/admin/qa/activity-days/{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/activity-days/{userId}
  • Auth
    HTTP bearer

Path parameters

userIdnumber required

Request body

daysnumber

How many of the last N days (including today) get a qualifying activity row.

gap_offsetsnumber[]

Day-offsets from today to deliberately leave empty (0 = today, 1 = yesterday, etc.) — for testing rest-day forgiveness or a broken run. Empty by default (an unbroken run).

timezonestring

Defaults to UTC.

Changes