---
title: "Create team"
method: POST
path: "/orgs/{orgId}/teams"
tags: ["teams"]
---

# Create team

`POST /orgs/{orgId}/teams`

Creates a new team in the organization identified by the given `orgId`.

## Path parameters

- `orgId` integer, required

## Request body

- CreateTeamRequest
  - `avatarId` string
  - `idpGroupId` integer, nullable
  - `team` Team
    - `dateCreated` string, date-time
    - `description` string
    - `id` integer, nullable
    - `lastUpdated` string, date-time
    - `name` string, required

## Response `200`

OK

- CreateTeamResponse
  - `team` TeamDbDto
    - `avatarUrl` string
    - `description` string
    - `idpGroupId` integer, nullable
    - `idpGroupName` string, nullable
    - `membersCount` integer
    - `name` string
    - `teamId` integer

## Other responses

- `400` — Bad request
- `403` — Operation not allowed
- `409` — Duplicated element

---

[API](https://skmtc.net/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.net/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/versions/13316c9fe5ff/schema)
