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 no id (422)

Issue a PUT request to /todos without an id in the URL or the request body.

The /todos endpoint exists, but the API cannot know which todo to update. Because the request reaches a valid endpoint but is missing required update information, the response should be 422 Unprocessable Content.

Basic Instructions

  • Send PUT /todos
  • 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 so the missing identifier is the relevant error
  • Verify the response status is 422

Example body:

{
  "title": "missing identifier",
  "doneStatus": false,
  "description": "no id in URL or body"
}

Try it now

PUT /todos without an id in the URL or payload
Experiment with this endpoint