---
title: "Set default team"
method: POST
path: "/api/v2/teams/setDefault"
tags: ["Teams"]
---

# Set default team

`POST /api/v2/teams/setDefault`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v2/teams/setDefault`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

Mark or unmark a team as the organization's default team. When a team is set as default, any previously default team is automatically unset. New users joining the organization are added to the default team.

## Request body

- TeamsSetDefaultRequest
  - `organizationId` string
  - `id` string, required
  - `isDefault` boolean, required

## Response `200`

Successful response

- object
  - `ok` boolean

## Other responses

- `400`: Error Response
- `401`: Error Response
- `404`: Error Response

---

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