time-entries #129
- userId
-
Myrtie Daniel @myrtie_daniel33
- taskId
- —
- projectId
- projects/63
- description
- Writing tests
- startedAt
- endedAt
- durationMinutes
- 107
- createdAt
Overview
time-entries / #129
#129
#129
Writing tests
Request
curl example
curl -sS \ "https://example-data.com/api/v1/time-entries/129" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/time-entries/129" ); 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/129"
);
const timeEntry = (await res.json()) as TimeEntry; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/time-entries/129"
)
time_entrie = res.json() Response
{
"id": 129,
"userId": 45,
"taskId": null,
"projectId": 63,
"description": "Writing tests",
"startedAt": "2026-04-15T05:46:06.133Z",
"endedAt": "2026-04-15T07:33:06.133Z",
"durationMinutes": 107,
"createdAt": "2026-04-15T07:33:06.133Z"
}