---
raw: true
search:
  tags:
    - Teams
    - POST
seo:
  description: >-
    Creates a subteam, a team inside this team that it bills. Requires an…
    Reference for the POST /v1/teams/{teamId}/subteams endpoint in the Spacefast
    API.
sidebar:
  label: Create a subteam
  badge: POST
title: Create a subteam
type: openapi-operation
---
Creates a subteam, a team inside this team that it bills. Requires an Enterprise team. Any member can create one and becomes its admin; with the team setting `subteamCreationAdminOnly` on, only owners and admins can. The team's owners and admins also run every subteam as its owners and admins.

`POST /v1/teams/{teamId}/subteams`

**Request body** (`application/json`, required)

- `name` (string, required)

Request body example:

```json
{
  "name": "string"
}
```

**Responses**

- `201` — Response for status 201
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 201:

```json
{
  "$schema": "http://example.com",
  "data": {
    "id": "string",
    "teamId": "string",
    "name": "string",
    "slug": "string",
    "memberCount": 0,
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  }
}
```
