---
title: "Set what an organization is to WizBI (kind; super_admin, two-step)"
method: PATCH
path: "/api/admin/orgs/{orgId}"
tags: ["admin"]
---

# Set what an organization is to WizBI (kind; super_admin, two-step)

`PATCH /api/admin/orgs/{orgId}`

## 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/admin/orgs/{orgId}`
- Auth: none declared

## Path parameters

- `orgId` string, required

## Request body

- AdminPatchOrgBody
  - `kind` 'customer' | 'internal' | 'demo' | 'system' | 'test' | 'personal', required
  - `reason` string: Why (required to apply a write and to read content; recorded in the audit / staff access log).
  - `confirm` boolean: false = return a preview only; true = apply the change.

## Response `200`

Preview or result.

- union
  - object
    - `preview` object, required
  - object
    - `applied` object, required

## Other responses

- `400`: Invalid request or reason missing.
- `403`: Not a super_admin.
- `404`: No such organization.

---

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