> ## Documentation Index
> Fetch the complete documentation index at: https://docs.open-metadata.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a Team

> Create a new team for organizing users and controlling access

# Create a Team

Create a new team for organizing users and controlling access to data assets.

## Body Parameters

**name** `string` *required*

Name of the team. Must be unique across all teams.

**teamType** `string` *required*

Type of team. One of: `Group`, `Department`, `Division`, `BusinessUnit`, `Organization`.

**displayName** `string`

Human-readable display name for the team.

**description** `string`

Description of the team in Markdown format.

**email** `string`

Email address associated with the team.

**parents** `array`

Array of parent team references. A team can belong to a parent team in the hierarchy.

**properties**

**id** `string`

UUID of the parent team.

**type** `string`

Type of entity (always `team`).

**isJoinable** `boolean` (default: true)

Whether users can join this team without an invitation.

**owners** `array`

Array of owner references (users or teams) to assign as owners of this team.

**properties**

**id** `string`

UUID of the owner entity.

**type** `string`

Type of owner entity, for example `user`, `team`.

**name** `string`

Name of the owner entity.

**policies** `array`

Array of policy references to attach to the team.

**properties**

**id** `string`

UUID of the policy.

**type** `string`

Type of entity (always `policy`).

**domains** `array`

Fully qualified names of the domains to assign for governance purposes.

```python POST /v1/teams theme={null}
from metadata.sdk import configure
from metadata.sdk.entities import Teams
from metadata.generated.schema.api.teams.createTeam import CreateTeamRequest

configure(
    host="https://your-company.open-metadata.org/api",
    jwt_token="your-jwt-token"
)

request = CreateTeamRequest(
    name="Accounting",
    teamType="Group",
    displayName="Accounting",
    description="Accounting team under Finance",
    parents=["4f87a3ea-d798-4509-8c64-5b11f8a96f89"]
)

team = Teams.create(request)
print(f"Created: {team.fullyQualifiedName.root}")
```

```java POST /v1/teams theme={null}
import java.util.List;
import java.util.UUID;
import org.openmetadata.schema.api.teams.CreateTeam;

// client is an initialized OpenMetadataClient.
var request = new CreateTeam()
    .withName("Accounting")
    .withTeamType(CreateTeam.TeamType.GROUP)
    .withDisplayName("Accounting")
    .withDescription("Accounting team under Finance")
    .withParents(List.of(UUID.fromString("4f87a3ea-d798-4509-8c64-5b11f8a96f89")));

var team = client.teams().create(request);
```

```bash POST /v1/teams theme={null}
curl -X POST "{base_url}/api/v1/teams" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Accounting",
    "teamType": "Group",
    "displayName": "Accounting",
    "description": "Accounting team under Finance",
    "parents": [
      {
        "id": "4f87a3ea-d798-4509-8c64-5b11f8a96f89",
        "type": "team"
      }
    ]
  }'
```

```json Response theme={null}
{
  "id": "449b5f25-4cbb-42db-8f71-3be2c5cd888a",
  "teamType": "Group",
  "name": "Accounting",
  "fullyQualifiedName": "Accounting",
  "version": 0.1,
  "updatedAt": 1769982623753,
  "updatedBy": "admin",
  "href": "http://localhost:8585/api/v1/teams/449b5f25-4cbb-42db-8f71-3be2c5cd888a",
  "parents": [
    {
      "id": "4f87a3ea-d798-4509-8c64-5b11f8a96f89",
      "type": "team",
      "name": "Finance",
      "fullyQualifiedName": "Finance",
      "displayName": "Finance",
      "deleted": false
    }
  ],
  "users": [],
  "deleted": false,
  "owners": [],
  "domains": [],
  "children": [],
  "policies": []
}
```

***

## Returns

Returns the created team object with all specified properties and system-generated fields.

## Response

**id** `string`

Unique identifier for the team (UUID format).

**name** `string`

Team name.

**fullyQualifiedName** `string`

Fully qualified name (same as name for teams).

**displayName** `string`

Human-readable display name.

**teamType** `string`

Type of team (`Group`, `Department`, `Division`, `BusinessUnit`, `Organization`).

**description** `string`

Description of the team in Markdown format.

**parents** `array`

Parent team references.

**properties**

**id** `string`

UUID of the parent team.

**type** `string`

Type of entity (always `team`).

**name** `string`

Name of the parent team.

**fullyQualifiedName** `string`

Fully qualified name of the parent team.

**users** `array`

Users belonging to this team.

**children** `array`

Child team references.

**policies** `array`

Policy references attached to the team.

**owners** `array`

List of owners assigned to the team.

**domains** `array`

Domain assignments for governance.

**version** `number`

Version number for the entity (starts at 0.1).

***

## Error Handling

| Code | Error Type | Description |
| - | - | - |
| `400` | `BAD_REQUEST` | Invalid request body or missing required fields |
| `401` | `UNAUTHORIZED` | Invalid or missing authentication token |
| `403` | `FORBIDDEN` | User lacks permission to create teams |
| `409` | `ENTITY_ALREADY_EXISTS` | Team with same name already exists |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.