focus
Finish working on a task: close the timer, comment, set the status — in one call.
Closes the caller's live session on this task with the real end_time / elapsed_time (session_status: completed by default, interrupted for a hand-off; a paused session keeps its stored elapsed), posts summary as the closing comment, then sets the task status LAST (task_status: completed by default, in_progress to hand off; the project's custom status of that category when one exists). With no live session on this task session is null and the comment + status still land; a timer on another task is left alone.
post/focus/finish
Request
- Base URL: https://restivity.ai/api/v1
- URL: https://restivity.ai/api/v1/focus/finish
- Auth: OAuth 2 (authorization code, authorization URL https://restivity.ai/oauth/authorize, token URL https://restivity.ai/api/oauth/token, scopes: tasks:write, pomodoro:write, comments:write)
Request body
Response
The task (read back), the closed session (or null) and the closing comment.
Changes
No recorded changes to this operation across all 1 revision of this API.