📝 Todo list
Update todo
The API endpoint is responsible for updating a todo based on the provided todo ID in the URL path variable.
When accessing this endpoint and providing the updated todo title and description in the request body, the corresponding todo with the specified ID will be modified accordingly.
patch/todos/{todoId}
Request body
Example request
{
"description": "Updated description of the todo",
"title": "Updated todo title"
}Response
Update todo
Example response
{
"data": {
"_id": "648e0749aeefd0cfa40adde1",
"createdAt": "2023-06-17T19:19:37.856Z",
"description": "Updated descripton",
"title": "Updated ruby name",
"updatedAt": "2023-06-17T19:21:54.446Z"
},
"message": "Todo updated successfully",
"statusCode": 200,
"success": true
}