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

# Update a team

> Update team details without changing the team ID.

> [!WARNING]
>
> This endpoint is experimental and may change or be removed without notice.


## OpenAPI

````yaml patch /v1/teams/{team_id}
openapi: 3.1.0
info:
  description: REST API for management of Baseten resources
  title: Baseten management API
  version: 1.0.0
servers:
  - url: https://api.baseten.co
security:
  - BearerAuth: []
paths:
  /v1/teams/{team_id}:
    parameters:
      - $ref: '#/components/parameters/team_id'
    patch:
      summary: Updates a team
      description: >-
        Updates the fields you send. Renaming a team keeps its ID. Requires an
        organization admin.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTeamRequestV1'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamV1'
      x-codeSamples:
        - lang: bash
          source: |-
            curl --request PATCH \
            --url https://api.baseten.co/v1/teams/{team_id} \
            --header "Authorization: Bearer $BASETEN_API_KEY" \
            --data '{
              "name": "ml-platform",
              "icon": "\ud83d\ude80"
            }'
        - lang: python
          source: |-
            import requests
            import os
            API_KEY = os.environ.get("BASETEN_API_KEY", "<YOUR_API_KEY>")
            url = "https://api.baseten.co/v1/teams/{team_id}"

            headers = {"Authorization": f"Bearer {API_KEY}"}

            response = requests.request(
                "PATCH",
                url,
                headers=headers,
                json={'name': 'ml-platform', 'icon': '🚀'}
            )

            print(response.text)
components:
  parameters:
    team_id:
      schema:
        type: string
      name: team_id
      in: path
      required: true
  schemas:
    UpdateTeamRequestV1:
      additionalProperties: false
      description: Request to update a team. Only the fields sent change.
      properties:
        name:
          anyOf:
            - maxLength: 255
              minLength: 1
              type: string
            - type: 'null'
          default: null
          description: Name of the team, unique among the organization's teams
          examples:
            - ml-platform
          title: Name
        icon:
          anyOf:
            - maxLength: 10
              minLength: 1
              type: string
            - type: 'null'
          default: null
          description: Emoji icon of the team, up to 10 characters; null clears it
          examples:
            - 🚀
          title: Icon
          x-null-distinct: true
      title: UpdateTeamRequestV1
      type: object
    TeamV1:
      description: A team.
      properties:
        id:
          description: Unique identifier of the team
          title: Id
          type: string
        name:
          description: Name of the team
          title: Name
          type: string
        icon:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Emoji icon of the team, if any
          examples:
            - 🚀
          title: Icon
        default:
          type: boolean
          description: Whether this is the default team for the organization
          title: Default
        created_at:
          description: Time the team was created in ISO 8601 format
          format: date-time
          title: Created At
          type: string
      required:
        - id
        - name
        - default
        - created_at
      title: TeamV1
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Send `Authorization: Bearer <api_key>`. The legacy `Authorization:
        Api-Key <api_key>` scheme is also accepted.

````