> ## 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 Strategy Output Spec

> Edit a shared output spec — typically just ``format_template``.

Editing the format_template here propagates to every team that
references this spec via ``strategy_output_spec_id``. That's the
whole point of the shared-spec architecture: one fix, every team
benefits, no copy-paste drift.

Audit-logged via `admin_audit_log` with action
``strategy_output_spec.update`` on entity type
``strategy_output_spec`` so changes are traceable per spec.



## OpenAPI

````yaml /openapi.json patch /api/v1/admin/strategy-output-specs/{slug}
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/admin/strategy-output-specs/{slug}:
    patch:
      tags:
        - Admin
      summary: Admin Update Strategy Output Spec
      description: |-
        Edit a shared output spec — typically just ``format_template``.

        Editing the format_template here propagates to every team that
        references this spec via ``strategy_output_spec_id``. That's the
        whole point of the shared-spec architecture: one fix, every team
        benefits, no copy-paste drift.

        Audit-logged via `admin_audit_log` with action
        ``strategy_output_spec.update`` on entity type
        ``strategy_output_spec`` so changes are traceable per spec.
      operationId: >-
        admin_update_strategy_output_spec_api_v1_admin_strategy_output_specs__slug__patch
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
            title: Slug
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StrategyOutputSpecUpdate'
      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:
    StrategyOutputSpecUpdate:
      properties:
        name:
          anyOf:
            - type: string
              maxLength: 255
            - type: 'null'
          title: Name
        description:
          anyOf:
            - type: string
              maxLength: 2000
            - type: 'null'
          title: Description
        format_template:
          anyOf:
            - type: string
              maxLength: 50000
            - type: 'null'
          title: Format Template
        note:
          anyOf:
            - type: string
              maxLength: 500
            - type: 'null'
          title: Note
      additionalProperties: false
      type: object
      title: StrategyOutputSpecUpdate
      description: |-
        Partial update of a shared strategy_output_specs row.

        `format_template` is the only field operators are expected to edit
        routinely — it carries the formatting rules that propagate to every
        team referencing this spec. Slug is intentionally not editable here:
        teams FK by slug-resolved id and renaming a slug would silently
        orphan team configs that point at this row.
    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

````