---
title: "Set default organization"
method: POST
path: "/v1/users/me/organizations"
tags: ["Users"]
---

# Set default organization

`POST /v1/users/me/organizations`

## Request

- Base URL: `https://api.tetrascience.com`
- URL: `https://api.tetrascience.com/v1/users/me/organizations`
- Auth: API key in header `ts-auth-token` and API key in header `x-org-slug`

## Request body

- object
  - `id` Id (unresolved $ref)

## Response `200`

Successfully updated default organization

- object
  - `id` Id (unresolved $ref)
  - `orgSlug` Schema (unresolved $ref)
  - `organizationId` Id (unresolved $ref)
  - `role` string
  - `roleId` Id (unresolved $ref)
  - `status` 'active' | 'inactive'
  - `userId` Id (unresolved $ref)
  - `orgName` string

## Other responses

- `401`: Invalid token
- `403`: Caller is not authorized to perform this action
- `404`: User/Organization not found

---

[API](https://skmtc.dev/tetrascience/apis/administration.md) - [All operations](https://skmtc.dev/tetrascience/apis/administration/llms.txt) - [OpenAPI document](https://skmtc.dev/tetrascience/apis/administration/revisions/c1c829febcc5?raw)
