Skip to main content

Reset activity history

Soft-deletes every log and resets streaks and completion rate to zero, and updates createdAt so the habit behaves as newly created. Habits only (kind = habit). Requires a Bearer session and a valid Bearer session.
1 min read
post/activities/profiles/{studioId}/{activityId}/reset-history
Request example
Response
post/activities/profiles/{studioId}/{activityId}/reset-history

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.

Path parameters

studioIdstringrequired#
Identifier or key studioId.
activityIdstringrequired#
Identifier or key activityId.

Responses

No content.