Rewards (QA)

Set a user's streak state directly

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

Path parameters

userIdnumber required

Request body

current_daysnumber required
best_daysnumber

Defaults to current_days.

last_active_datestring

Local date (YYYY-MM-DD) the streak is "active as of". Defaults to yesterday in the user's own timezone, not today — so a real log today naturally advances the streak by one, rather than being silently treated as already counted. Replaces what earlier streaks earned, then earns every stone up to current_days (badges, cosmetics, prizes, Huddle seat) without milestone points.

Example request

{
  "current_days": 29
}

Changes