goals / #39
- userId
-
Trace Witting-Stamm @trace_witting-stamm17
- name
- Run a 5K
- category
- fitness
- targetValue
- 5
- currentValue
- 4.6
- unit
- km
- deadline
- 2026-10-10
- isCompleted
- false
- createdAt
Component variants
Medium
Run a 5K
#39
Small
goals/39 Related
References
curl -sS \
"https://example-data.com/api/v1/goals/39" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/goals/39"
);
const goal = await res.json();import type { Goal } from "https://example-data.com/types/goals.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/goals/39"
);
const goal = (await res.json()) as Goal;import requests
res = requests.get(
"https://example-data.com/api/v1/goals/39"
)
goal = res.json() {
"id": 39,
"userId": 42,
"name": "Run a 5K",
"category": "fitness",
"targetValue": 5,
"currentValue": 4.6,
"unit": "km",
"deadline": "2026-10-10",
"isCompleted": false,
"createdAt": "2026-02-25T10:09:39.985Z"
}