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

# Update Team

> Edit a team: name/url/bio, set slug, set email, grant beta.



## OpenAPI

````yaml https://api.primeintellect.ai/openapi.json patch /api/admin/teams/{team_id}
openapi: 3.1.0
info:
  title: PI API
  version: 0.1.0
servers:
  - url: https://api.primeintellect.ai
security: []
paths:
  /api/admin/teams/{team_id}:
    patch:
      tags:
        - admin-teams
      summary: Update Team
      description: 'Edit a team: name/url/bio, set slug, set email, grant beta.'
      operationId: update_team_api_admin_teams__team_id__patch
      parameters:
        - name: team_id
          in: path
          required: true
          schema:
            type: string
            title: Team Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTeamRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericResponse_TeamDetailResponse_'
        '401':
          description: Authorization failed
        '403':
          description: Insufficient permissions
        '422':
          description: Invalid request data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    UpdateTeamRequest:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
        bio:
          anyOf:
            - type: string
            - type: 'null'
          title: Bio
        slug:
          anyOf:
            - type: string
            - type: 'null'
          title: Slug
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
        logo:
          anyOf:
            - type: string
            - type: 'null'
          title: Logo
        hasBetaAccess:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Hasbetaaccess
      type: object
      title: UpdateTeamRequest
      description: >-
        Admin edit of a team. Only provided fields are written. Setting
        ``email``

        marks it verified and clears the allowed-domain / verification token.
    GenericResponse_TeamDetailResponse_:
      properties:
        data:
          anyOf:
            - $ref: '#/components/schemas/TeamDetailResponse'
            - type: 'null'
          description: Response data
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
          description: Response status
      type: object
      title: GenericResponse[TeamDetailResponse]
    ErrorResponse:
      properties:
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
          title: Errors
      type: object
      required:
        - errors
      title: ErrorResponse
    TeamDetailResponse:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        slug:
          anyOf:
            - type: string
            - type: 'null'
          title: Slug
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
        emailVerified:
          type: boolean
          title: Emailverified
          default: false
        allowedEmailDomain:
          anyOf:
            - type: string
            - type: 'null'
          title: Allowedemaildomain
        logo:
          anyOf:
            - type: string
            - type: 'null'
          title: Logo
        bio:
          anyOf:
            - type: string
            - type: 'null'
          title: Bio
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
        hasBetaAccess:
          type: boolean
          title: Hasbetaaccess
          default: false
        defaultEnvironmentVisibility:
          anyOf:
            - type: string
            - type: 'null'
          title: Defaultenvironmentvisibility
        createdAt:
          type: string
          format: date-time
          title: Createdat
        updatedAt:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updatedat
      type: object
      required:
        - id
        - name
        - createdAt
      title: TeamDetailResponse
      description: DB details for a single team.
    ErrorDetail:
      properties:
        param:
          type: string
          title: Param
        details:
          type: string
          title: Details
      type: object
      required:
        - param
        - details
      title: ErrorDetail
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````