You can support this site from as little as $1 a month on Patreon.

The support pays for site hosting and the expansion of this content.

In addition, Patreon Supporters gain access to exclusive online video training courses and ebooks.

Join Now

How to complete the challenge PUT /todos/{id} not found (404)

Issue a PUT request to /todos/{id} where the URL id does not exist, and do not include an id in the request body.

This is an update attempt against a specific URL resource. Since that resource does not exist, the response should be 404 Not Found.

Basic Instructions

  • Send PUT /todos/{id} where {id} does not exist
  • Add an X-CHALLENGER header to track challenge completion
  • Set Content-Type to application/json
  • Do not include an id field in the JSON payload
  • Include a valid title
  • Verify the response status is 404

Example body:

{
  "title": "missing todo",
  "doneStatus": false,
  "description": "URL id does not exist"
}

Try it now

PUT /todos/{id} with a missing URL id and no body id
Experiment with this endpoint