completed-activity

Undo a habit's Done or Skip in today's routine

Deletes the habit's log in today's routine and rebuilds routine state from the logs left. A routine that was completed normally is reopened and the user is pointed back at the undone habit (409 if another routine is active). A force-completed routine stays completed. Sent webhooks, push notifications and competency level changes are not reversed. Clients must also drop the entry from their offline sync queue, otherwise a later sync re-creates the log.

post/completed-activity/{activity_id}/undo

Request

  • Base URL
    https://api.focusbear.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

activity_idstring uuid required

Response

activity_sequence_idstring required
current_activity_idstring nullable required

The user's current habit after the undo, or null when the routine is not the active one.

routine_reopenedboolean required

Whether a completed routine was reopened because its habit was undone.

Changes

No recorded changes to this operation across all 1 revision of this API.