---
title: "Upsert the auto-maintained \"Last Session\" workspace"
method: PUT
path: "/workspaces/last-session"
tags: ["Workspaces"]
---

# Upsert the auto-maintained "Last Session" workspace

`PUT /workspaces/last-session`

Always overwrites the single Last Session row for the caller - never creates a second one. Called by the frontend's debounced auto-save effect.

## Request body

- object
  - `payload` object

## Response `200`

Last Session workspace saved.

## Other responses

- `400` — Invalid request body.

---

[API](https://skmtc.dev/termix/apis/termix-api.md) · [All operations](https://skmtc.dev/termix/apis/termix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/termix/termix-api/revisions/f4ef343eff1b/schema)
