---
title: "What moving these sessions would do: the price before and after, and who decides."
method: POST
path: "/work-sessions/move/preview"
tags: ["work-sessions"]
---

# What moving these sessions would do: the price before and after, and who decides.

`POST /work-sessions/move/preview`

## Request

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

Read-only. Per session: today’s rate and amount in the origin and the ones it would take in the destination (the same pricing the move runs), whether it can move (billed / invoiced cannot), and whether the caller decides alone or needs an approval and from whom. Money the caller may not read is null: an owner/admin reads rate and amount; the hours’ owner reads the amount only when the workspace shows members their earnings; anyone else reads neither.

## Request body

- PreviewWorkSessionMoveInput
  - `session_ids` string[], required: The ids of the concluded work sessions to move (1–500) — one person’s, from one workspace.
  - `destination_project_id` string, uuid, required: The project the hours would go to.

## Response `200`

The preview.

- WorkSessionMovePreview
  - `origin_workspace_id` string, uuid, required
  - `destination_workspace_id` string, uuid, required
  - `destination_project_id` string, uuid, required
  - `owner_id` string, uuid, required: Whose hours they are.
  - `decides` 'alone' | 'approval', required: `alone`: the move runs at once. `approval`: it becomes a request to the owner/admins of the workspace the hours leave (`approvers`).
  - `approvers` object[], required
    - `id` string, uuid, required
    - `name` string, nullable, required
  - `origin_money` 'full' | 'amount' | 'none', required: What the caller reads of the origin’s money: rate and amount (owner/admin), the amount only (the hours’ owner when the workspace shows members their earnings), or nothing.
  - `destination_money` 'full' | 'amount' | 'none', required
  - `sessions` object[], required
    - `session_id` string, uuid, required
    - `worked_seconds` integer, required
    - `movable` boolean, required
    - `reason` 'billed' | 'invoiced', nullable, required: Why the session cannot move: billed (on a draft) or invoiced.
    - `origin` object, nullable, required
      - `rate_cents` integer, nullable, required: The hourly rate — null when it is not the caller’s to read.
      - `amount_cents` integer, nullable, required
      - `currency` string, nullable, required
      - `billing_status` string, nullable, required
    - `destination` object, nullable, required
      - `rate_cents` integer, nullable, required: The hourly rate — null when it is not the caller’s to read.
      - `amount_cents` integer, nullable, required
      - `currency` string, nullable, required
      - `billing_status` string, nullable, required
  - `totals` object, required
    - `movable_seconds` integer, required
    - `frozen_ids` string[], required
    - `origin` object, nullable, required
      - `amount_cents` integer, required
      - `currency` string, required
    - `destination` object, nullable, required
      - `amount_cents` integer, required
      - `currency` string, required

## Other responses

- `400`: Invalid request shape.
- `401`: Missing or invalid access token.
- `403`: Token lacks the required scope.
- `404`: No such session among those the caller can see, or no such project.
- `409`: A Trash code — the session or the destination is in the Trash.
- `422`: Request body failed schema validation.
- `429`: Rate-limit exceeded for this tier.

---

[API](https://skmtc.dev/restivity/apis/restivity-rest-api.md) · [All operations](https://skmtc.dev/restivity/apis/restivity-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/restivity/apis/restivity-rest-api/revisions/5764e41ebb3a?raw)
