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} (422)

Issue a PUT request to /todos/{id} using an id that does not exist.

This API does not allow creating todos with a caller-selected auto-generated id, so the valid JSON reaches the write use case but is rejected as unprocessable.

The response should be 422 Unprocessable Content with this message:

{
  "errorMessages": [
    "Cannot create todo with PUT due to Auto fields id"
  ]
}

Try it now