How to complete the challenge PUT /api/challenger/guid RESTORE
First retrieve your progress with GET /api/challenger/{guid}.
Then send that JSON back to PUT /api/challenger/{guid} with Content-Type: application/json. When the URL GUID and payload challenger id match, the API restores the progress and returns 200.
Try it now
If you want to inspect the challenger payload first, get it with GET /api/challenger/{guid}. See the solution.
GET /api/challenger/{guid} to get the challenger payload
PUT /api/challenger/{guid} to restore challenger progress
Lessons Learned
PUT /api/challenger/{guid}restores progress for an existing challenger from a savedJSONsnapshot.- A
200 OKrestore should leave the guid stable while replacing progress data. - Restoring progress is separate from restoring the todo database.
Suggested Experiments
- Complete a challenge, restore an older progress snapshot, then inspect
/api/challengesfor rollback. - Try restoring progress data to the right guid but with stale todo database data and compare what changes.