time-entries #568
- userId
-
Mia Renner @mia.renner47
- taskId
- tasks/52
- projectId
- —
- description
- Writing tests
- startedAt
- endedAt
- durationMinutes
- 104
- createdAt
Overview
time-entries / #568
#568
#568
Writing tests
Request
curl example
curl -sS \ "https://example-data.com/api/v1/time-entries/568" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/time-entries/568" ); const timeEntry = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/time-entries.d.ts https://example-data.com/types/time-entries.d.ts
import type { TimeEntry } from "./types/time-entries";
const res = await fetch(
"https://example-data.com/api/v1/time-entries/568"
);
const timeEntry = (await res.json()) as TimeEntry; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/time-entries/568"
)
time_entrie = res.json() Response
{
"id": 568,
"userId": 212,
"taskId": 52,
"projectId": null,
"description": "Writing tests",
"startedAt": "2025-12-28T03:09:53.892Z",
"endedAt": "2025-12-28T04:53:53.892Z",
"durationMinutes": 104,
"createdAt": "2025-12-28T04:53:53.892Z"
}