completed-activity

Unskip a habit skipped in today's routine

Removes the habit's skip from today's routine so the habit is pending again, then sends the activity-completed Pusher event so the other devices re-pull the routine. Unlike undo, it only ever removes a skip: a habit done after its skip keeps its Done. Idempotent: when there is no skip to remove, nothing changes and unskipped is false. List today's skipped habit ids with GET /completed-activity-sequence/routine-progress?date=<today> (skipped_habit_ids, which carries them for every routine status). A completed routine is reopened as undo reopens it. Clients must also drop the skip from their offline sync queue, otherwise a later sync re-creates it.

post/completed-activity/{activity_id}/unskip

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

Request body

device_idstring uuid

The calling device. Sent back as leader_device_id in the activity-completed Pusher event so the device that unskipped can ignore its own echo.

Response

unskippedboolean required

Whether a skip was removed. False, with nothing changed, when the habit has no skip in today's routine: it was never skipped, was already unskipped, or was done after the skip.

activity_sequence_idstring nullable required

The routine the habit was restored to.

current_activity_idstring nullable required

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

routine_reopenedboolean required

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

Changes

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