Write the draft
- todoListId
- todo-lists/84
- title
- Write the draft
- isDone
- true
- dueDate
- 2026-06-02
- completedAt
- createdAt
- updatedAt
Overview
todos / #999
Write the draft
#999
Request
curl example
curl -sS \ "https://example-data.com/api/v1/todos/999" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/todos/999" ); const todo = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/todos.d.ts https://example-data.com/types/todos.d.ts
import type { Todo } from "./types/todos";
const res = await fetch(
"https://example-data.com/api/v1/todos/999"
);
const todo = (await res.json()) as Todo; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/todos/999"
)
todo = res.json() Response
{
"id": 999,
"todoListId": 84,
"title": "Write the draft",
"isDone": true,
"dueDate": "2026-06-02",
"completedAt": "2026-01-28T19:01:23.906Z",
"createdAt": "2025-06-20T12:56:56.161Z",
"updatedAt": "2026-02-09T18:02:30.819Z"
}