Rewards (admin)

What a rule would count for a user, by the real evaluator

Changed on

With start_date/end_date: a challenge's window. Without: a goal's rolling window to today.

post/api/rewards/admin/rules/preview

Request

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

Request body

rule_typestring required
rule_paramsobject required
user_idnumber required
start_datestring
end_datestring

Example request

{
  "start_date": "2026-11-20",
  "end_date": "2026-11-30"
}

Changes