> ## 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.

# Update Team

> Update a team



## OpenAPI

````yaml /api-reference/openapi.json put /teams/{team_id}
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:
  /teams/{team_id}:
    put:
      tags:
        - Teams
      summary: Update Team
      description: Update a team
      operationId: update_team
      parameters:
        - name: team_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Team Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TeamUpdateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamUpdateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TeamUpdateRequest:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: New name for the team
        default_role:
          anyOf:
            - $ref: '#/components/schemas/TeamRole'
            - type: 'null'
          description: Deprecated. Only `no_access` is accepted.
          deprecated: true
        is_active:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Active
          description: >-
            New active status for the team (requires workspace admin access).
            Inactive teams are hidden from listing and discovery surfaces. A
            workspace's last active team can't be deactivated.
      type: object
      title: TeamUpdateRequest
      description: API request schema for updating a team
    TeamUpdateResponse:
      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: TeamUpdateResponse
      description: API response schema for updating 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.