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

> Partial update of a team's admin-managed settings.



## OpenAPI

````yaml /openapi.json patch /api/v1/admin/teams/{slug}/settings
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/admin/teams/{slug}/settings:
    patch:
      tags:
        - Admin
      summary: Admin Update Team Settings
      description: Partial update of a team's admin-managed settings.
      operationId: admin_update_team_settings_api_v1_admin_teams__slug__settings_patch
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
            title: Slug
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TeamSettingsUpdate'
      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:
    TeamSettingsUpdate:
      properties:
        lifecycle_type:
          anyOf:
            - type: string
              enum:
                - cyclical
                - trigger_based
            - type: 'null'
          title: Lifecycle Type
        requires_brand:
          anyOf:
            - type: string
              enum:
                - 'yes'
                - 'no'
                - optional
            - type: 'null'
          title: Requires Brand
        chat_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Chat Enabled
        cycle_start_mode:
          anyOf:
            - type: string
              enum:
                - strategy
                - briefing_form
            - type: 'null'
          title: Cycle Start Mode
        trigger_types:
          anyOf:
            - items:
                type: string
                enum:
                  - task
                  - strategy
                  - briefing_form
                  - file_upload
              type: array
            - type: 'null'
          title: Trigger Types
        brief_template_override:
          anyOf:
            - type: string
              maxLength: 10000
            - type: 'null'
          title: Brief Template Override
        note:
          anyOf:
            - type: string
              maxLength: 500
            - type: 'null'
          title: Note
      additionalProperties: false
      type: object
      title: TeamSettingsUpdate
      description: >-
        Partial update of a team's admin-managed settings.


        Consistency rules enforced in the route handler (matches the DB CHECK):

        - lifecycle_type='cyclical' → cycle_start_mode must be non-null after
        update

        - lifecycle_type='trigger_based' → trigger_types must contain ≥1 entry
        after update
    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

````