Complete Goal
Mark the current user’s active goal as completed. The goal, its highlights, author, and start date move to the top of goal_history with status: "completed" and an ended_at timestamp, and the current goal fields are cleared.
Authentication: Required — Bearer token (member). The user is resolved within the current app, so the id must belong to a member of this app.
Path parameters:
id(required) — The user’s ID
Request body: None.
Goal history: goal_history is newest first, capped at the 20 most recent entries. Each entry has goal, highlights, author, started_at, ended_at, and status (completed, or replaced when a goal is overwritten or cleared via Set Goal). History is server-managed and read-only — it cannot be written directly.
Tip: To log a final reflection and complete the goal in one call, use Create Reflection Note (Notes) with complete_goal: true.
Response: Updated user profile.
Errors:
404— User not found422—{ "error": { "message": "There is no active goal to complete." } }
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.