---
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, nullable
    - `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

## Changes

> 14 revisions in range; 1 not diffed, 2 could not be searched.

- **2026-07-09** `aa8544683897` — 3 info
  - added the new optional request property `idpGroupId`
  - added the optional property `team/idpGroupId` to the response with the `200` status
  - added the optional property `team/idpGroupName` to the response with the `200` status

[Change history](https://skmtc.dev/seqeralabs/apis/seqera-api/changes/orgs/:orgId/teams/post.md)

---

[API](https://skmtc.dev/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.dev/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/revisions/97f7655d105a/schema)
