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

# Admin Update Team Display Metadata

> Replace a team's display_metadata blob (gradient, accent_color, hero, …).



## OpenAPI

````yaml /openapi.json patch /api/v1/admin/teams/{slug}/display-metadata
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/admin/teams/{slug}/display-metadata:
    patch:
      tags:
        - Admin
      summary: Admin Update Team Display Metadata
      description: >-
        Replace a team's display_metadata blob (gradient, accent_color, hero,
        …).
      operationId: >-
        admin_update_team_display_metadata_api_v1_admin_teams__slug__display_metadata_patch
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
            title: Slug
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TeamDisplayMetadataUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    TeamDisplayMetadataUpdate:
      properties:
        display_metadata:
          additionalProperties: true
          type: object
          title: Display Metadata
          description: Display metadata blob (gradient, accent_color, hero, etc.)
        note:
          anyOf:
            - type: string
              maxLength: 500
            - type: 'null'
          title: Note
      additionalProperties: false
      type: object
      required:
        - display_metadata
      title: TeamDisplayMetadataUpdate
      description: |-
        Replace the `display_metadata` JSONB blob for a team.

        Guards (per PR 3 risk register): gradient.from / gradient.to must be
        non-blank — an admin accidentally emptying these would blank out the
        team's public detail page hero.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````