example-data.com
Menu
Browse docs and collections

Overview

time-entries / #462

time-entries #462

userId
Kaleb Schmidt @kaleb.schmidt
taskId
projectId
projects/74
description
Incident response
startedAt
endedAt
durationMinutes
416
createdAt

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/time-entries/462" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/time-entries/462"
);
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/462"
);
const timeEntry = (await res.json()) as TimeEntry;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/time-entries/462"
)
time_entrie = res.json()

Response

{
  "id": 462,
  "userId": 171,
  "taskId": null,
  "projectId": 74,
  "description": "Incident response",
  "startedAt": "2025-12-08T04:03:23.760Z",
  "endedAt": "2025-12-08T10:59:23.760Z",
  "durationMinutes": 416,
  "createdAt": "2025-12-08T10:59:23.760Z"
}