---
title: "Switch Active Org"
method: POST
path: "/v1/sessions/active-org"
tags: ["sessions"]
---

# Switch Active Org

`POST /v1/sessions/active-org`

## Request

- Base URL: `https://api.claims.zicron.ai`
- URL: `https://api.claims.zicron.ai/v1/sessions/active-org`
- Auth: none declared

Switch active org for current session.

The user must have a valid, accepted membership in the target org.
Updates Session.active_org_id, which is then used by resolve_session()
to set the auth context and RLS scope.

## Request body

- SwitchOrgRequest: Request to switch active organization.
  - `org_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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