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

# Update contact fuzzy-merge settings

> Partially updates the fuzzy-merge configuration: numeric thresholds (0-100% or absolute), candidate limit (1-200), custom field rules (field path / weight / matchMode), lookup-trigger and instant-merge field lists, and per-field conflict resolution rules. All changes are validated against the merged configuration.



## OpenAPI

````yaml /api-reference/openapi.yaml put /api/organizations/{organizationId}/contact-fuzzy-merge-settings
openapi: 3.0.3
info:
  title: Tether Relay and Tether API
  version: 1.0.0
  description: >-
    Route-derived OpenAPI contract generated from tether-relay backend sources.
    Regenerate with scripts/sync-openapi-from-backend.mjs.
servers:
  - url: https://your-instance.example.com
    description: Production
  - url: http://localhost:2212
    description: Local API service
security: []
tags:
  - name: AI
  - name: Applications
  - name: Approval
  - name: Auth
  - name: Automations
  - name: Calls
  - name: Campaigns
  - name: Contact Analytics
  - name: Contact Metrics
  - name: Contact Notes
  - name: Contacts
  - name: Conversation Monitor
  - name: Conversations
  - name: Departments
  - name: Email
  - name: Escalation Dashboard
  - name: Event Logs
  - name: Google Sheets
  - name: Marketplace
  - name: Messages
  - name: Notification Sounds
  - name: Notifications
  - name: Org Snapshots
  - name: Organizations
  - name: Outreach
  - name: Outreach Metrics
  - name: Outreach Sources
  - name: Pipelines
  - name: Processes
  - name: Prompts
  - name: Reminders
  - name: Sms
  - name: Templates
  - name: Traces
  - name: Training
  - name: Upload
  - name: User Snapshots
  - name: Users
  - name: Vertical
  - name: Webchats
  - name: Webhook
paths:
  /api/organizations/{organizationId}/contact-fuzzy-merge-settings:
    put:
      tags:
        - Organizations
      summary: Update contact fuzzy-merge settings
      description: >-
        Partially updates the fuzzy-merge configuration: numeric thresholds
        (0-100% or absolute), candidate limit (1-200), custom field rules (field
        path / weight / matchMode), lookup-trigger and instant-merge field
        lists, and per-field conflict resolution rules. All changes are
        validated against the merged configuration.
      operationId: put_organizations_organizationId_contact_fuzzy_merge_settings
      parameters:
        - in: path
          name: organizationId
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateContactFuzzyMergeSettingsRequest'
      responses:
        '200':
          description: Contact fuzzy merge settings updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactFuzzyMergeSettingsUpdateResponse'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationErrorResponse'
        '404':
          description: Organization not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    UpdateContactFuzzyMergeSettingsRequest:
      type: object
      properties:
        candidateLimit:
          type: integer
          minimum: 1
          maximum: 200
        thresholdPercent:
          type: number
          minimum: 0
          maximum: 100
        reviewThresholdPercent:
          type: number
          minimum: 0
          maximum: 100
        threshold:
          type: integer
          minimum: 0
          description: >-
            Optional absolute threshold; converted to thresholdPercent against
            the max possible score.
        reviewThreshold:
          type: integer
          minimum: 0
          description: >-
            Optional absolute review threshold; converted to
            reviewThresholdPercent against the max possible score.
        customFields:
          type: array
          items:
            $ref: '#/components/schemas/ContactFuzzyMergeCustomFieldRule'
        lookupTriggerFields:
          type: array
          items:
            type: string
        instantMergeFields:
          type: array
          items:
            type: string
        conflictResolutionRules:
          type: object
          additionalProperties: true
      additionalProperties: true
      example:
        candidateLimit: 100
        thresholdPercent: 92
        reviewThresholdPercent: 75
        customFields:
          - field: address.streetAddress
            weight: 20
            matchMode: fuzzy_string
        lookupTriggerFields:
          - email
          - phoneNumber
        instantMergeFields:
          - email
    ContactFuzzyMergeSettingsUpdateResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        message:
          type: string
        data:
          $ref: '#/components/schemas/ContactFuzzyMergeSettingsData'
      additionalProperties: true
      example:
        success: true
        message: Contact fuzzy merge settings updated
        data:
          candidateLimit: 100
          thresholdPercent: 92
          reviewThresholdPercent: 75
          customFields: []
          lookupTriggerFields:
            - email
            - phoneNumber
          instantMergeFields:
            - email
          conflictResolutionRules: {}
    OrganizationErrorResponse:
      type: object
      properties:
        error:
          type: string
        details:
          type: string
      additionalProperties: true
      example:
        error: Organization not found
        details: No organization exists with the provided id
    ContactFuzzyMergeCustomFieldRule:
      type: object
      properties:
        field:
          type: string
        weight:
          type: number
          minimum: 0
          maximum: 100
        matchMode:
          type: string
          enum:
            - exact_normalized
            - fuzzy_string
      required:
        - field
        - weight
        - matchMode
      additionalProperties: true
      example:
        field: address.streetAddress
        weight: 25
        matchMode: fuzzy_string
    ContactFuzzyMergeSettingsData:
      type: object
      properties:
        candidateLimit:
          type: integer
          minimum: 1
          maximum: 200
        thresholdPercent:
          type: number
          minimum: 0
          maximum: 100
        reviewThresholdPercent:
          type: number
          minimum: 0
          maximum: 100
        customFields:
          type: array
          items:
            $ref: '#/components/schemas/ContactFuzzyMergeCustomFieldRule'
        lookupTriggerFields:
          type: array
          items:
            type: string
        instantMergeFields:
          type: array
          items:
            type: string
        conflictResolutionRules:
          type: object
          additionalProperties: true
          description: Per-field conflict resolution rules keyed by field name.
      additionalProperties: true
      example:
        candidateLimit: 50
        thresholdPercent: 90
        reviewThresholdPercent: 70
        customFields:
          - field: address.streetAddress
            weight: 25
            matchMode: fuzzy_string
        lookupTriggerFields:
          - email
          - phoneNumber
        instantMergeFields:
          - email
        conflictResolutionRules:
          email: prefer_newer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````