goals / #95
- userId
-
Esperanza Casper @esperanza_casper
- name
- Work out 4x per week
- category
- habit
- targetValue
- 4.2
- currentValue
- 2.7
- unit
- sessions/week
- deadline
- —
- isCompleted
- false
- createdAt
Component variants
Medium
Work out 4x per week
#95
Small
goals/95 Related
References
curl -sS \
"https://example-data.com/api/v1/goals/95" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/goals/95"
);
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/95"
);
const goal = (await res.json()) as Goal;import requests
res = requests.get(
"https://example-data.com/api/v1/goals/95"
)
goal = res.json() {
"id": 95,
"userId": 97,
"name": "Work out 4x per week",
"category": "habit",
"targetValue": 4.2,
"currentValue": 2.7,
"unit": "sessions/week",
"deadline": null,
"isCompleted": false,
"createdAt": "2025-06-28T15:16:38.837Z"
}