How to complete the challenge PUT /api/challenger/guid CREATE
This challenge is like the restore challenge, except the challenger should not already be active in memory.
Use the saved challenger progress JSON as the request body and send it to PUT /api/challenger/{guid}. If the GUID is restorable but not currently active, the API creates that challenger in memory from the payload.
Try it now
If you want to inspect the challenger payload shape first, get it with GET /api/challenger/{guid}. See the solution.
GET /api/challenger/{guid} to get the challenger payload
The main request below uses a restorable copy of that payload with a different GUID.
PUT /api/challenger/{guid} to create a restorable challenger
Lessons Learned
PUT /api/challenger/{guid}can create an in-memory challenger from saved progress when the guid is not active.201 Createdhere refers to recreating a challenger session, not creating a todo.- This is a useful example of
PUTas create-or-replace for a known resource identifier.
Suggested Experiments
- Restore the same saved challenger twice and compare first-create behavior with later restore behavior.
- Alter the saved progress body slightly and check whether the created session reflects that change.