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

# Validate a preset draft (dry-run)

> Report whether a preset draft would be accepted, running the SAME pre-store
verdict the corresponding write route would — CREATE mode when no preset named
``name`` exists, VERSION mode when one does (mode-resolved by a store lookup).
Both verdicts return 200; only a malformed body is a 400.



## OpenAPI

````yaml /openapi.json post /api/presets/validate
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/validate:
    post:
      tags:
        - presets
      summary: Validate a preset draft (dry-run)
      description: >-
        Report whether a preset draft would be accepted, running the SAME
        pre-store

        verdict the corresponding write route would — CREATE mode when no preset
        named

        ``name`` exists, VERSION mode when one does (mode-resolved by a store
        lookup).

        Both verdicts return 200; only a malformed body is a 400.
      operationId: post_api_presets_validate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PresetValidate'
        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.
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            A dependency this route needs is temporarily unavailable; retry
            shortly.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PresetValidate:
      description: >-
        A preset validation (dry-run) request — the full create field set. When
        a

        preset named ``name`` already exists the door validates a NEW VERSION:
        then

        ``base_tool`` / ``description`` carry forward from the active body (a
        provided

        value that differs is rejected) and any absent field merges from it,
        exactly as

        the save-version route merges.
      properties:
        base_tool:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Base Tool
        description:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Description
        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
        name:
          title: Name
          type: string
        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
      required:
        - name
      title: PresetValidate
      type: object
    Error:
      properties:
        error:
          type: string
      required:
        - error
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````