user

Edit a focus session (non-destructive — preserves original values in metadata)

patch/user/weekly-focus-block-summary/{id}

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

idstring required

Request body

intentionstring
achievementsstring
distractionsstring
focus_duration_secondsnumber

Duration in seconds (numeric, e.g. 3600). Must be ≥ 0.

project_idstring uuid nullable

The project the session was for. The caller must own or be an accepted member of it; null clears it.

focus_starsnumber

The "How focused were you?" rating, stored as metadata.focus_stars like the finish call does.

Response

user_idstring
focus_mode_idstring
start_timestring date-time
finish_timestring date-time
scheduled_finish_timestring date-time
status'active' | 'paused' | 'completed'
paused_atstring date-time
total_paused_secondsnumber
intentionstring
achievementsstring
distractionsstring
focus_duration_secondsnumber
metadataobject
block_level'gentle' | 'strict' | 'super-strict' nullable
versionnumber
class_session_idstring nullable
project_idstring nullable
idstring
created_atstring
updated_atstring

Changes

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