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-CHALLENGERheader to track challenge completion - Set
Content-Typetoapplication/json - Do not include an
idfield in the JSON payload - Include a valid
titleso 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"
}