---
title: "Create Team"
method: POST
path: "/teams"
tags: ["teams"]
---

# Create Team

`POST /teams`

Create a new team. The user who creates the team will automatically be assigned as the owner of the team. The team owner can invite new members, who will be able add new owners and update or delete the team from your project.

## Request body

- object
  - `name` string, required — Team name. Max length: 128 chars.
  - `roles` string[] — Array of strings. Use this param to set the roles in the team for the user who created it. The default role is **owner**. A role can be any string. Learn more about [roles and permissions](/docs/permissions). Max length for each role is 32 chars.

## Response `201`

Team

- Team — Team
  - `$id` string, required — Team ID.
  - `dateCreated` integer, required — Team creation date in Unix timestamp.
  - `name` string, required — Team name.
  - `sum` integer, required — Total sum of team members.

---

[API](https://skmtc.net/appwrite/apis/client.md) · [All operations](https://skmtc.net/appwrite/apis/client/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/appwrite/client/versions/b1c00a0bc3fb/schema)
