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

# Update NER threshold for a source type

> Persist new threshold values for a given source type. ``auto_confirm_threshold`` must be >= ``review_threshold``.



## OpenAPI

````yaml /api-reference/memory-api.json put /v1/memory/ner-review/thresholds/{source_type}
openapi: 3.1.0
info:
  title: Strattum Memory API
  description: >-
    REST API that serves entity context — profile, timeline, graph, sources and
    formatted context — for agents and UIs. (PRD-003, Workstream 1.3)
  version: 1.0.0
servers: []
security: []
paths:
  /v1/memory/ner-review/thresholds/{source_type}:
    put:
      tags:
        - ner-review
        - ner-review-queue
      summary: Update NER threshold for a source type
      description: >-
        Persist new threshold values for a given source type.
        ``auto_confirm_threshold`` must be >= ``review_threshold``.
      operationId: update_threshold_v1_memory_ner_review_thresholds__source_type__put
      parameters:
        - name: source_type
          in: path
          required: true
          schema:
            type: string
            title: Source Type
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateThresholdRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourceThresholdConfig'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UpdateThresholdRequest:
      properties:
        auto_confirm_threshold:
          type: number
          maximum: 1
          minimum: 0
          title: Auto Confirm Threshold
        review_threshold:
          type: number
          maximum: 1
          minimum: 0
          title: Review Threshold
      type: object
      required:
        - auto_confirm_threshold
        - review_threshold
      title: UpdateThresholdRequest
      description: Body for PUT /ner-review/thresholds/{source_type}.
    SourceThresholdConfig:
      properties:
        source_type:
          $ref: '#/components/schemas/ReviewSourceType'
        auto_confirm_threshold:
          type: number
          maximum: 1
          minimum: 0
          title: Auto Confirm Threshold
          description: Confidence >= this → auto-confirm (skip queue).
          default: 0.85
        review_threshold:
          type: number
          maximum: 1
          minimum: 0
          title: Review Threshold
          description: Confidence >= this → enter review queue. Below → reject.
          default: 0.5
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - source_type
      title: SourceThresholdConfig
      description: |-
        Per-source NER confidence thresholds (row in ner_source_thresholds).

        Attributes:
            source_type:             The unstructured source these thresholds apply to.
            auto_confirm_threshold:  Tags at or above this confidence are confirmed
                                     automatically without entering the review queue.
            review_threshold:        Tags at or above this threshold (but below
                                     auto_confirm_threshold) enter the review queue.
                                     Tags below this threshold are silently rejected.
            updated_at:              UTC timestamp of last modification.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ReviewSourceType:
      type: string
      enum:
        - slack
        - confluence
        - gdrive
        - meeting_transcript
        - email
        - notion
      title: ReviewSourceType
      description: |-
        Unstructured-data source types that feed the review queue.

        Structured sources (CRM, ERP) use deterministic entity resolution and
        do not produce review queue items.
    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

````