📝 Todo list

Toggle todo done status

The API endpoint is responsible for toggling the done status of a todo item.

When accessing this endpoint and providing the necessary data, you can update the completion status of a specific todo item, marking it as either done or undone based on its current status.

patch/todos/toggle/status/{todoId}

Response

Toggle todo done status

messagestring
statusCodenumber
successboolean

Example response

{
  "data": {
    "_id": "648e0c0722147847623e0a00",
    "createdAt": "2023-06-17T19:39:51.789Z",
    "isComplete": true,
    "title": "Learn Ruby",
    "updatedAt": "2023-06-17T19:40:04.266Z"
  },
  "message": "done",
  "statusCode": 200,
  "success": true
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.