---
title: "Set my primary organization (★): where my direct chats, MCP and unpinned tokens answer from"
method: PUT
path: "/api/me/primary-org"
tags: ["me"]
---

# Set my primary organization (★): where my direct chats, MCP and unpinned tokens answer from

`PUT /api/me/primary-org`

## Request

- Base URL: `https://api.wizbi.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wizbi.ai/api/me/primary-org`
- Auth: none declared

## Request body

- PrimaryOrgBody
  - `orgId` string, required

## Response `200`

The new primary org.

- PrimaryOrgChange
  - `primaryOrgId` string, required
  - `previousOrgId` string, nullable, required
  - `changed` boolean, required

## Other responses

- `403`: Not an organization I may enter.
- `404`: org_not_found.

---

[API](https://skmtc.dev/wizbi/apis/wizbi-core-api.md) · [All operations](https://skmtc.dev/wizbi/apis/wizbi-core-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wizbi/apis/wizbi-core-api/revisions/5a47416c82ec?raw)
