---
title: "Rebuild a user's total and level from the ledger"
method: POST
path: "/api/rewards/admin/users/{userId}/recalculate"
tags: ["Rewards (admin)"]
---

# Rebuild a user's total and level from the ledger

`POST /api/rewards/admin/users/{userId}/recalculate`

## 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/users/{userId}/recalculate`
- Auth: HTTP bearer

The recovery path the append-only ledger exists for. Safe to run at any time; it is the only supported way to fix a total that has gone wrong.

## Path parameters

- `userId` number, required

## Response `201`

## Changes

- **2026-09-12** `0d5ef02a4fbe`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/changes/api/rewards/admin/users/:userId/recalculate/post.md)

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/28695827f27a?raw)
