example-data.com

goals / #75

userId
Candace Mueller @candace.mueller
name
Gain muscle mass
category
weight
targetValue
99
currentValue
45.5
unit
kg
deadline
2026-07-01
isCompleted
false
createdAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/goals/75" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/goals/75"
);
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/75"
);
const goal = (await res.json()) as Goal;
import requests

res = requests.get(
    "https://example-data.com/api/v1/goals/75"
)
goal = res.json()
{
  "id": 75,
  "userId": 75,
  "name": "Gain muscle mass",
  "category": "weight",
  "targetValue": 99,
  "currentValue": 45.5,
  "unit": "kg",
  "deadline": "2026-07-01",
  "isCompleted": false,
  "createdAt": "2026-03-04T16:26:30.515Z"
}
Draftbit