How to complete the challenge PUT /todos/{id} no amend id (422)

Issue a PUT request to an existing todo and include an id in the body that does not match the id in the URL.

The response should be 422 Unprocessable Content because the API does not allow the primary key to be amended through the request body.

Look for the validation message containing:

Can not amend id from

Try it now

If you don't know what todos are available then you can check by GET /todos. See the solution.

GET /todos to see what todos are available now

If you have already deleted all todos, create one using POST /todos. See the solution.

POST /todos to create a todo item for this challenge
PUT /todos/{id} with a mismatched body id to trigger 422
Experiment with this endpoint