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

# Create Team In Workspace

> Create a new team in a workspace



## OpenAPI

````yaml /api-reference/openapi.json post /workspaces/{workspace_id}/teams
openapi: 3.1.0
info:
  title: Aspect API
  description: Manage and search media in Aspect.
  version: 1.0.0
servers:
  - url: https://api.aspect.inc
security:
  - ApiKeyAuth: []
tags:
  - name: Users
  - name: API Keys
  - name: Workspaces
  - name: Teams
  - name: Directories
  - name: Assets
  - name: Attachments
  - name: Filesystem Items
  - name: Collections
  - name: Canvases
  - name: Comments
  - name: Search
  - name: Transcription
  - name: Metadata
  - name: Shares
  - name: Share Templates
  - name: Watermarks
paths:
  /workspaces/{workspace_id}/teams:
    post:
      tags:
        - Workspaces
      summary: Create Team In Workspace
      description: Create a new team in a workspace
      operationId: create_team_in_workspace
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Workspace Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TeamCreateRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamCreateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TeamCreateRequest:
      properties:
        name:
          type: string
          title: Name
          description: Name of the team
        default_role:
          $ref: '#/components/schemas/TeamRole'
          description: Deprecated. Only `no_access` is accepted.
          default: no_access
          deprecated: true
      type: object
      required:
        - name
      title: TeamCreateRequest
      description: API request schema for creating a team
    TeamCreateResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: Team ID
        name:
          type: string
          title: Name
          description: Team name
        workspace_id:
          type: string
          format: uuid
          title: Workspace Id
          description: ID of the workspace the team belongs to
        root_directory_id:
          type: string
          format: uuid
          title: Root Directory Id
          description: >-
            The team's top-level directory. Use it as `parent_id` to list the
            team's contents.
        trash_directory_id:
          type: string
          format: uuid
          title: Trash Directory Id
          description: Trash directory ID - deleted assets are moved here
        default_role:
          $ref: '#/components/schemas/TeamRole'
          description: 'Deprecated: always `no_access`.'
          deprecated: true
        is_active:
          type: boolean
          title: Is Active
          description: >-
            Whether the team is active. Inactive teams are hidden from listing
            and discovery surfaces.
        num_assets:
          type: integer
          title: Num Assets
          description: Number of assets in team
        size_bytes:
          type: integer
          title: Size Bytes
          description: Total size of assets in bytes
        duration:
          type: number
          title: Duration
          description: Total duration in seconds
        created_by_user_id:
          type: string
          format: uuid
          title: Created By User Id
          description: ID of the user that created the team
        created:
          type: string
          format: date-time
          title: Created
          description: Creation timestamp
        updated:
          type: string
          format: date-time
          title: Updated
          description: Last update timestamp
      type: object
      required:
        - id
        - name
        - workspace_id
        - root_directory_id
        - trash_directory_id
        - default_role
        - is_active
        - num_assets
        - size_bytes
        - duration
        - created_by_user_id
        - created
        - updated
      title: TeamCreateResponse
      description: API response schema for creating a team
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TeamRole:
      type: string
      enum:
        - full_access
        - editor
        - commenter
        - downloader
        - viewer
        - no_access
      title: TeamRole
      description: Role on a team.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Aspect API key (sk_...) in Authorization header. 'Bearer ' optional.

````

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