work-sessions

Undo your own last move of your own hours.

The sessions go back to the project and workspace the last move took them from (and their task, when it is still there), priced again there, and the owner/admins of that workspace are told. Only the person who moved their own hours may undo — the one who moved alone, or the requester of an approved request (never the admin who approved) — and only while the sessions are still where the move left them and the project they came from still takes them. Billed or invoiced sessions never move (sessions_frozen, session_ids). Anyone else, or a session never moved: 409 move_not_undoable.

post/work-sessions/move/undo

Request

  • Base URL: https://restivity.ai/api/v1
  • URL: https://restivity.ai/api/v1/work-sessions/move/undo
  • Auth: OAuth 2 (authorization code, authorization URL https://restivity.ai/oauth/authorize, token URL https://restivity.ai/api/oauth/token, scopes: pomodoro:write)

Request body

session_idsstring[] required

The ids of the sessions whose last move is undone (1–500) — the caller’s own hours, moved by the caller (alone, or approved on the caller’s request), from one workspace to one workspace.

Response

Undone: per session before (where the move had left it) and after (back home).

status'moved' | 'pending' | 'declined' | 'undone' required
code'move_needs_approval'

On 202: the move waits for the owner/admins of the workspace the hours leave.

messagestring
request_idstring uuid nullable required
origin_workspace_idstring uuid required
destination_workspace_idstring uuid required
approver_idsstring[]
session_idsstring[]

Changes

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