Update goals
Partially updates the caller’s targets; omitted fields are left unchanged.
/api/targets__Secure-better-auth.session_tokenAPI key · cookierequiredBetter Auth session. Signing in (Google or email magic link) sets an HttpOnly session cookie that scopes every request to that account. The web app and CLI use this; agents use the OAuth 2.1 flow of the MCP server.
AuthorizationBearer token · headerrequiredPersonal API key sent as Authorization: Bearer skcal_…. Create and scope keys in the app under your profile → API keys. Keys default to full access; a scoped key is limited to its granted resource:action permissions and cannot manage other keys.
application/jsonThe fields to change; omitted fields are left unchanged.
goalWeightKgnumberNew target body weight in kilograms.
startWeightKgnumberNew starting body weight in kilograms.
dailyKcalTargetintegerNew daily calorie target.
proteinTargetGintegerNew daily protein target in grams.
targetDateinteger<int64>New goal date as a Unix epoch in milliseconds.
activitystringThe user's day-to-day activity level in a few words; stored as their single activity-level memory (replacing any previous one).
reasonstringOptional context for why the targets changed; not stored.
The targets were updated.
okbooleanrequiredAlways true.