---
title: "Create a new team."
method: POST
path: "/api/teams"
tags: ["Teams"]
---

# Create a new team.

`POST /api/teams`

You can only create an team when you are authenticated as a user (OpenID implicit flow).
You will be assigned as owner of the new team automatically.

## Request body

- CreateTeamDto
  - `name` string, required — The name of the team.

## Response `201`

Team created.

- TeamDto
  - `_links` object, required — The links.
  - `id` string, required — The ID of the team.
  - `name` string, required — The name of the team.
  - `version` integer, required — The version of the team.
  - `created` string, date-time, required — The timestamp when the team has been created.
  - `lastModified` string, date-time, required — The timestamp when the team has been modified last.
  - `roleName` string, nullable — The role name of the user.

## Other responses

- `400` — Team request not valid.
- `500` — Operation failed.

---

[API](https://skmtc.net/squidex/apis/squidex-api.md) · [All operations](https://skmtc.net/squidex/apis/squidex-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/squidex/squidex-api/revisions/b4a9b62f113a/schema)
