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-CHALLENGERheader to track challenge completion - Set
Content-Typetoapplication/json - Do not include an
idfield 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.