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

# Disable AI Referrals Connection

> Soft-disable a connection. Previously pushed events are retained but further pushes are rejected with `410 Gone` and the dashboard stops reading from this connection.



## OpenAPI

````yaml /api-reference/openapi.json delete /{brand_id}/ai-referrals/connections/{connection_id}
openapi: 3.1.0
info:
  title: Scrunch Data API
  version: 0.1.0
servers:
  - url: https://api.scrunchai.com/v1
security: []
paths:
  /{brand_id}/ai-referrals/connections/{connection_id}:
    delete:
      tags:
        - ai-referrals
      summary: Disable AI Referrals Connection
      description: >-
        Soft-disable a connection. Previously pushed events are retained but
        further pushes are rejected with `410 Gone` and the dashboard stops
        reading from this connection.
      operationId: disableAiReferralsConnection
      parameters:
        - name: brand_id
          in: path
          required: true
          schema:
            type: integer
            title: Brand Id
          description: The unique identifier for the brand.
        - name: connection_id
          in: path
          required: true
          schema:
            type: string
            title: Connection Id
          description: The ULID of the AI Referrals connection.
      responses:
        '200':
          description: Connection disabled.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiReferralsConnection'
        '404':
          description: Connection not found for this brand.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer:
            - configure
components:
  schemas:
    AiReferralsConnection:
      type: object
      description: A registered AI Referrals push connection.
      properties:
        id:
          type: string
          description: ULID identifier for the connection.
        brand_id:
          type: integer
        website:
          type: string
          description: >-
            Hostname or URL of the website whose referrals are pushed against
            this connection.
        provider:
          type: string
          description: 'Source analytics provider. MVP allow-list: ''adobe_analytics''.'
          example: adobe_analytics
        status:
          type: string
          enum:
            - active
            - disabled
        created_at:
          type: string
          format: date-time
        last_pushed_at:
          type:
            - string
            - 'null'
          format: date-time
        last_push_error:
          type:
            - string
            - 'null'
      required:
        - id
        - brand_id
        - website
        - provider
        - status
        - created_at
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````