goals / #157
- userId
-
Alex Lang @alex_lang85
- name
- Sleep 8 hours nightly
- category
- sleep
- targetValue
- 8.5
- currentValue
- 4.7
- unit
- hours/night
- deadline
- 2026-05-20
- isCompleted
- false
- createdAt
Component variants
Medium
Sleep 8 hours nightly
#157
Small
goals/157 Related
References
curl -sS \
"https://example-data.com/api/v1/goals/157" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/goals/157"
);
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/157"
);
const goal = (await res.json()) as Goal;import requests
res = requests.get(
"https://example-data.com/api/v1/goals/157"
)
goal = res.json() {
"id": 157,
"userId": 163,
"name": "Sleep 8 hours nightly",
"category": "sleep",
"targetValue": 8.5,
"currentValue": 4.7,
"unit": "hours/night",
"deadline": "2026-05-20",
"isCompleted": false,
"createdAt": "2026-03-17T14:04:18.781Z"
}