---
title: "Choose the organization's main workspace."
method: PUT
path: "/v1/organizations/current/default-workspace"
tags: ["organizations"]
---

# Choose the organization's main workspace.

`PUT /v1/organizations/current/default-workspace`

## Request

- Base URL: `https://api.50heads.com`
- URL: `https://api.50heads.com/v1/organizations/current/default-workspace`
- Auth: HTTP bearer

Organization admins only (403 `organization_admin_required`), on a browser session with a fresh proof in the `x-50h-reauth` header (401 `reauth_required`). It needs a person: API keys, connected apps and service accounts get 403 `session_required`. Every change is written to the organization's audit. The workspace auto-join, SCIM and single sign-on put people in by default. Only the owner of the current main workspace can choose (403 `owner_required`), or any admin once it is closed. A closed workspace cannot be chosen (409 `workspace_closed`).

## Request body

- OrganizationDefaultWorkspaceRequest
  - `workspaceId` string, required

## Response `200`

OK

- OrganizationDefaultWorkspaceResponse
  - `defaultWorkspaceId` string, required

## Other responses

- `400`: The request is not valid; `error.details.validation` lists the fixes.
- `401`: No key or token, or it expired or was revoked.
- `403`: The key or token lacks the scope (`insufficient_scope`), or the action is not allowed.
- `429`: Too many requests; wait for Retry-After.

---

[API](https://skmtc.dev/50heads/apis/50heads-api.md) · [All operations](https://skmtc.dev/50heads/apis/50heads-api/llms.txt) · [OpenAPI document](https://skmtc.dev/50heads/apis/50heads-api/revisions/20175e8b00e3?raw)
