---
title: "Refresh Challenge Progress"
method: POST
path: "/api/challenges/{user_id}/update-progress"
tags: ["Challenges"]
---

# Refresh Challenge Progress

`POST /api/challenges/{user_id}/update-progress`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/challenges/{user_id}/update-progress`
- Auth: HTTP bearer

Recalculate challenge progress from real transaction data.
Auto-completes or fails expired challenges. Awards XP on completion.

Call this:
- Every time the app opens
- After every transaction sync
- On a daily schedule

## Path parameters

- `user_id` string, uuid, required

## Response `200`

Successful Response

- ChallengesListResponse
  - `user_id` string, required
  - `challenges` ChallengeResponse[], required
    - `id` string, required
    - `challenge_type` string, required
    - `title` string, required
    - `description` string, required
    - `briefing_reason` string, nullable
    - `emoji` string, required
    - `target_amount` number, required
    - `current_amount` number, required
    - `progress_pct` number, required
    - `difficulty` string, required
    - `status` string, required
    - `streak_count` integer, required
    - `started_at` string, required
    - `expires_at` string, required
    - `completed_at` string, nullable
  - `total_active` integer, required
  - `total_completed` integer, required
  - `current_streak` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
