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

# Save a new preset version

> Save a new version (carry-forward sentinels on omitted fields) then reload and
fan out; 409 if the record is conflicted, 404 for an absent name. The
``list_changed`` emit is GUARDED on a real change to the serialized wire tool OR
its extension combos.



## OpenAPI

````yaml /openapi.json post /api/presets/{name}/versions
openapi: 3.1.0
info:
  description: The operator HTTP surface served under /api/*.
  title: tai42-skeleton API
  version: 0.1.1
servers: []
security: []
paths:
  /api/presets/{name}/versions:
    post:
      tags:
        - presets
      summary: Save a new preset version
      description: >-
        Save a new version (carry-forward sentinels on omitted fields) then
        reload and

        fan out; 409 if the record is conflicted, 404 for an absent name. The

        ``list_changed`` emit is GUARDED on a real change to the serialized wire
        tool OR

        its extension combos.
      operationId: post_api_presets_name_versions
      parameters:
        - in: path
          name: name
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PresetVersionSave'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data: {}
                required:
                  - data
                type: object
          description: Success.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Malformed request.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Missing or invalid api key.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Resource not found.
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Conflict with the current resource state.
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReloadingError'
          description: The server is applying a config reload; retry shortly.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PresetVersionSave:
      description: >-
        A new-preset-version request. At least one field must be present; an

        omitted field carries forward, an explicit ``[]`` clears (the store
        sentinel

        rule). ``output_schema`` carries forward when omitted, clears on an
        explicit

        ``null``, and wins on an explicit object schema.
      properties:
        extensions:
          anyOf:
            - items:
                items:
                  anyOf:
                    - type: string
                    - additionalProperties: true
                      type: object
                type: array
              type: array
            - type: 'null'
          default: null
          title: Extensions
        fixed_kwargs:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          default: null
          title: Fixed Kwargs
        output_schema:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          default: null
          title: Output Schema
        tags:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          default: null
          title: Tags
      title: PresetVersionSave
      type: object
    Error:
      properties:
        error:
          type: string
      required:
        - error
      type: object
    ReloadingError:
      properties:
        error:
          const: reloading — the server is applying a config reload; retry shortly
          type: string
        reloading:
          const: true
          type: boolean
      required:
        - error
        - reloading
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````