---
title: "Creates a team"
method: POST
path: "/chat/teams"
tags: ["Teams"]
---

# Creates a team

`POST /chat/teams`

## Headers

- `Authorization` string, string, required
- `Context` string, string, required
- `Accept` 'application/json', required
- `X-Accept-Timezone` string

## Request body

- object
  - `name` string, required
  - `description` string, required
  - `notifier_overrides` object[], required
    - `type` 'slack' | 'microsoft_team' | 'microsoft_team_v2', required
    - `data` object, required
      - `channel` string — This is only required for slack notifier
      - `channel_url` string — This is only required for microsoft teams notifier
      - `base_url` string — Used on microsoft_team_v2 if you need to override notifier
      - `headers` object
        - `channel_id` string — Used on microsoft_team_v2 if you need to override channel
        - `team_id` string — Used on microsoft_team_v2 if you need to override team

## Response `201`

The response after creating a team

- object
  - `_id` string, required
  - `updated_at` string, date-time, required
  - `created_at` string, date-time, required
  - `__v` integer, required
  - `name` string, required
  - `description` string, required
  - `notifier_overrides` object[], required
    - `type` 'slack' | 'microsoft_team' | 'microsoft_team_v2', required
    - `data` object, required
      - `channel` string — This is only required for slack notifier
      - `channel_url` string — This is only required for microsoft teams notifier
      - `base_url` string — Used on microsoft_team_v2 if you need to override notifier
      - `headers` object
        - `channel_id` string — Used on microsoft_team_v2 if you need to override channel
        - `team_id` string — Used on microsoft_team_v2 if you need to override team
  - `resource_id` string
  - `resource_type` string, required

## Other responses

- `400` — Create team validation error response definition
- `401` — Failed to authenticate the user making the request
- `403` — Permission denied error
- `default` — Server error occurred

---

[API](https://skmtc.dev/staffshift/apis/staffshift-api-gateway.md) · [All operations](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/staffshift/staffshift-api-gateway/revisions/6e2cb83db3a9/schema)
