---
title: "Set Workspace As Default"
method: POST
path: "/api/workspaces/{workspace_id}/set-as-default"
tags: ["workspaces", "workspaces"]
---

# Set Workspace As Default

`POST /api/workspaces/{workspace_id}/set-as-default`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/workspaces/{workspace_id}/set-as-default`
- Auth: none declared

Set this workspace as the user's login default (per-user, durable).

Distinct from `/switch` (per-session, transient): this endpoint changes
where future logins on brand-new browsers/devices land. Existing
sessions are unaffected — their `refresh_tokens.active_workspace_id`
is not touched.

Hard-blocked during impersonation (an admin should not change the
impersonated user's login default).

Returns 204. No token rotation needed (only affects future logins).

## Path parameters

- `workspace_id` integer, required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
