goals / #181
- userId
-
Cyril Frami @cyril_frami88
- name
- Lose weight
- category
- weight
- targetValue
- 68.9
- currentValue
- 35
- unit
- kg
- deadline
- 2026-08-21
- isCompleted
- false
- createdAt
Component variants
Medium
Lose weight
#181
Small
goals/181 Related
References
curl -sS \
"https://example-data.com/api/v1/goals/181" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/goals/181"
);
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/181"
);
const goal = (await res.json()) as Goal;import requests
res = requests.get(
"https://example-data.com/api/v1/goals/181"
)
goal = res.json() {
"id": 181,
"userId": 182,
"name": "Lose weight",
"category": "weight",
"targetValue": 68.9,
"currentValue": 35,
"unit": "kg",
"deadline": "2026-08-21",
"isCompleted": false,
"createdAt": "2025-06-01T14:36:12.176Z"
}