Create a Team
Create a new team for organizing users and controlling access to data assets.
Body Parameters
Name of the team. Must be unique across all teams.
Type of team. One of: Group, Department, Division, BusinessUnit, Organization.
Human-readable display name for the team.
Description of the team in Markdown format.
Email address associated with the team.
Array of parent team references. A team can belong to a parent team in the hierarchy.
Type of entity (always team).
Whether users can join this team without an invitation.
Array of owner references (users or teams) to assign as owners of this team.
UUID of the owner entity.
Type of owner entity (e.g., user, team).
Name of the owner entity.
Array of policy references to attach to the team.
Type of entity (always policy).
Fully qualified name of the domain to assign for governance purposes.
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.getcollate.io/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}")
{
"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
Unique identifier for the team (UUID format).
Fully qualified name (same as name for teams).
Human-readable display name.
Type of team (Group, Department, Division, BusinessUnit, Organization).
Description of the team in Markdown format.
Parent team references.
Type of entity (always team).
Fully qualified name of the parent team.
Users belonging to this team.
Policy references attached to the team.
List of owners assigned to the team.
Domain assignments for governance.
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 |