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

# Create a new test run

> Create a new UAT test run.



## OpenAPI

````yaml /api/openapi.json post /api/uat/v1/test-runs
openapi: 3.1.0
info:
  title: Sequency Graph API
  description: >

    # Sequency Graph-Native Trading API


    Graph-native API for trading intelligence, built on FalkorDB.


    ## Features


    - **Screener**: Filter stocks using graph-native queries with relationship
    expansion

    - **Stock Detail**: Complete stock context with all relationships

    - **Confluence Scoring**: Setup quality assessment with weighted components

    - **Strategy Matching**: Find matching options strategies via graph
    traversal

    - **Market Context**: Current market-wide context for trading decisions


    ## Data Sources


    All data is sourced from the FalkorDB knowledge graph, populated by:

    - Pattern detector (Go) - Technical indicators, patterns

    - Graph sync service - Levels, volume profiles, news, day classification
  version: 1.0.0
servers: []
security: []
paths:
  /api/uat/v1/test-runs:
    post:
      tags:
        - UAT Testing
      summary: Create a new test run
      description: Create a new UAT test run.
      operationId: create_test_run_api_uat_v1_test_runs_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UATTestRunCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Create Test Run Api Uat V1 Test Runs Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UATTestRunCreate:
      properties:
        scan_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Scan Id
        variant_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Variant Id
        test_type:
          $ref: '#/components/schemas/UATTestType'
        rule_version:
          type: string
          title: Rule Version
        git_sha:
          anyOf:
            - type: string
            - type: 'null'
          title: Git Sha
        config_snapshot:
          additionalProperties: true
          type: object
          title: Config Snapshot
          description: Must contain 'version' key
        data_snapshot_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Data Snapshot Id
      type: object
      required:
        - test_type
        - rule_version
        - config_snapshot
      title: UATTestRunCreate
      description: Request model for creating a test run.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UATTestType:
      type: string
      enum:
        - live_validation
        - backtest_replay
        - ab_variant
        - regression
      title: UATTestType
      description: Type of UAT test.
    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

````