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

# Update Integration Source Relationship

> Update status, score, or evidence for an integration source relationship.



## OpenAPI

````yaml https://config.heyhumm.ai/api/openapi.json put /api/integration-sources/relationships/{relationship_id}
openapi: 3.1.0
info:
  title: Configuration API
  description: >-
    API for managing configuration and queues for various services. This service
    consolidates the API functionality previously provided by dd_rag_api and
    code_rag_api.
  version: 1.0.0
servers:
  - url: https://config.heyhumm.ai
security: []
paths:
  /api/integration-sources/relationships/{relationship_id}:
    put:
      tags:
        - Integration Sources
      summary: Update Integration Source Relationship
      description: >-
        Update status, score, or evidence for an integration source
        relationship.
      operationId: >-
        update_integration_source_relationship_api_integration_sources_relationships__relationship_id__put
      parameters:
        - name: relationship_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Relationship Id
        - name: organization_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Organization Id
        - name: resource_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Resource Id
        - name: source_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Source Id
        - name: integration_source_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Integration Source Id
        - name: data_source_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Data Source Id
        - name: context_source_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Context Source Id
        - name: job_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Job Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IntegrationSourceRelationshipUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationSourceRelationshipResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    IntegrationSourceRelationshipUpdate:
      properties:
        status:
          anyOf:
            - $ref: '#/components/schemas/RelationshipStatus'
            - type: 'null'
        score:
          anyOf:
            - type: number
            - type: 'null'
          title: Score
        evidence:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Evidence
      type: object
      title: IntegrationSourceRelationshipUpdate
      description: Model for updating an existing integration source relationship.
    IntegrationSourceRelationshipResponse:
      properties:
        integration_source_id:
          type: string
          format: uuid
          title: Integration Source Id
          description: Integration source this relationship belongs to
        from_column_id:
          type: string
          format: uuid
          title: From Column Id
          description: Column acting as the foreign key / link origin
        to_table_id:
          type: string
          format: uuid
          title: To Table Id
          description: Target table this relationship points to
        to_column_name:
          type: string
          maxLength: 255
          title: To Column Name
          description: Target column name in the destination table
        type:
          $ref: '#/components/schemas/RelationshipType'
          description: Relationship type (FORMAL FK, inferred heuristic, manual, etc.)
          default: INFERRED
        status:
          $ref: '#/components/schemas/RelationshipStatus'
          description: Review status of the relationship
          default: SUGGESTED
        score:
          anyOf:
            - type: number
            - type: 'null'
          title: Score
          description: Confidence score assigned by the inference pipeline (0.0-1.0)
        evidence:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Evidence
          description: Supporting evidence and calculations used to infer the relationship
        id:
          type: string
          format: uuid
          title: Id
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - integration_source_id
        - from_column_id
        - to_table_id
        - to_column_name
        - id
        - created_at
        - updated_at
      title: IntegrationSourceRelationshipResponse
      description: Response model for integration source relationships.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RelationshipStatus:
      type: string
      enum:
        - SUGGESTED
        - APPROVED
        - REJECTED
      title: RelationshipStatus
    RelationshipType:
      type: string
      enum:
        - FOREIGN_KEY
        - INFERRED
        - MANUAL
      title: RelationshipType
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````