Move concluded work sessions (hours) to another project, across workspaces.
The one way priced hours leave the workspace they were earned in. Who loses money decides: an owner/admin of the origin moves at once; the hours’ owner moves at once from their own personal workspace or within one workspace; a plain member taking hours OUT of a company workspace gets 202 — the move is recorded as a request (request_id) and the origin’s owner/admins decide (POST /work-sessions/move/requests/{id}/decide). The destination must be a project the hours’ owner can track time in. A moved session is re-priced with the destination’s rates in the same statement, its task kept only when it belongs to the destination project, and the origin’s money history records it (an Undo is a move back). Call POST /work-sessions/move/preview first to show the price before and after.
Request
- Base URL: https://restivity.ai/api/v1
- URL: https://restivity.ai/api/v1/work-sessions/move
- 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
Response
The hours moved: each session’s anchors and price before and after.
Changes
No recorded changes to this operation across all 1 revision of this API.