goals / #92
- userId
-
Camron O'Conner @camron.oconner54
- name
- Lose weight
- category
- weight
- targetValue
- 79
- currentValue
- 28.6
- unit
- kg
- deadline
- 2026-09-22
- isCompleted
- false
- createdAt
Component variants
Medium
Lose weight
#92
Small
goals/92 Related
References
curl -sS \
"https://example-data.com/api/v1/goals/92" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/goals/92"
);
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/92"
);
const goal = (await res.json()) as Goal;import requests
res = requests.get(
"https://example-data.com/api/v1/goals/92"
)
goal = res.json() {
"id": 92,
"userId": 94,
"name": "Lose weight",
"category": "weight",
"targetValue": 79,
"currentValue": 28.6,
"unit": "kg",
"deadline": "2026-09-22",
"isCompleted": false,
"createdAt": "2025-07-08T13:04:54.010Z"
}