How to complete the challenge PUT /todos/{id} no body id (200)

Issue a PUT request to /todos/{id} and do not include an id field in the request body.

This is a common PUT design: the URL identifies the resource and the body supplies the replacement state.

Basic Instructions

  • Send PUT /todos/{id} where {id} is an existing todo id
  • 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 200

Example body:

{
  "title": "updated using URL id",
  "doneStatus": false,
  "description": "the id is only in the URL"
}

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} without an id in the payload
Experiment with this endpoint