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

# Propose destination column types from preview rows

> Stateless type inference over rows you post, typically a tap's test preview, before any pipeline exists. Uses the same deterministic inference as GET /api/v1/pipeline/dest-types but is more cautious: a column needs at least 5 non-null typed values to be typed. Below that, or when every value is null, the column stays string and carries a `note` (for example "2 non-null values in 20 rows; would be int"). A dirty value keeps the column string and reports it in `stringReason`. Nothing is read from a destination and nothing is stored.



## OpenAPI

````yaml /openapi.yaml post /api/v1/pipeline/propose-schema
openapi: 3.0.3
info:
  title: Datris API
  description: >
    REST API for the Datris AI Data Platform. Ingest, validate, transform,
    store, and retrieve data.


    For AI agent integration, use the [MCP
    Server](https://docs.datris.ai/mcp-server) instead.
  version: 1.57.1
  contact:
    name: Datris
    url: https://datris.ai
  license:
    name: Apache 2.0
servers:
  - url: http://localhost:8080
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /api/v1/pipeline/propose-schema:
    post:
      tags:
        - Pipelines
      summary: Propose destination column types from preview rows
      description: >-
        Stateless type inference over rows you post, typically a tap's test
        preview, before any pipeline exists. Uses the same deterministic
        inference as GET /api/v1/pipeline/dest-types but is more cautious: a
        column needs at least 5 non-null typed values to be typed. Below that,
        or when every value is null, the column stays string and carries a
        `note` (for example "2 non-null values in 20 rows; would be int"). A
        dirty value keeps the column string and reports it in `stringReason`.
        Nothing is read from a destination and nothing is stored.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - records
              properties:
                columns:
                  type: array
                  description: >-
                    Column order for the proposal. Defaults to the union of the
                    record keys in first-seen order.
                  items:
                    type: string
                records:
                  type: array
                  description: >-
                    Preview rows as name-to-value objects. Names match
                    case-insensitively.
                  items:
                    type: object
                    additionalProperties: true
      responses:
        '200':
          description: The proposal
          content:
            application/json:
              schema:
                type: object
                properties:
                  eligible:
                    type: boolean
                    description: Always true for this endpoint.
                  sampleRowCount:
                    type: integer
                    description: Number of rows the proposal was inferred from.
                  fields:
                    type: array
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                        type:
                          type: string
                          enum:
                            - string
                            - boolean
                            - int
                            - bigint
                            - double
                            - date
                            - timestamp
                        samples:
                          type: array
                          description: Up to 5 distinct values, truncated.
                          items:
                            type: string
                        stringReason:
                          type: object
                          description: >-
                            Why the column stayed string, when a dirty value
                            blocked a type.
                          properties:
                            value:
                              type: string
                            blocked:
                              type: string
                        note:
                          type: string
                          description: >-
                            Why the column stayed string when too few values
                            were present to type it.
        '400':
          description: No preview rows (empty `records`)
        '500':
          description: Error
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.