---
title: "Create a team"
method: POST
path: "/user-service/team"
tags: ["Teams"]
---

# Create a team

`POST /user-service/team`

Create a new team

## Request body

- TeamCreateRequest
  - `name` string, required — Team name
  - `description` string, nullable — Team description
  - `user_ids` string[] — List of user IDs to add to the team
  - `attached_role_ids` string[] — List of role IDs to assign to the team

## Response `201`

Created team

- TeamResponse
  - `id` string, uuid, required — Unique identifier for the team
  - `account_id` string, required — Account identifier this team belongs to
  - `name` string, required — Team name
  - `description` string, nullable — Team description
  - `users` object[] — List of users with their IDs and names
    - `id` string, uuid — User ID
    - `name` string — User name
  - `attached_role_ids` string[] — List of role IDs assigned to this team
  - `created_at` string, date-time, required — When the team was created
  - `updated_at` string, date-time, required — When the team was last updated

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden

---

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