---
title: "Mark a workspace as the restore-on-login default"
method: POST
path: "/workspaces/{id}/set-default"
tags: ["Workspaces"]
---

# Mark a workspace as the restore-on-login default

`POST /workspaces/{id}/set-default`

Clears isDefault on any other workspace for the caller. Idempotent if the target is already the default. Rejects the Last Session workspace.

## Path parameters

- `id` integer, required

## Response `200`

Workspace set as default.

## Other responses

- `404` — Workspace not found.

---

[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)
