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

# Link Channels to an Alert Rule

> Replaces the rule's subscribed channels with the supplied set.



## OpenAPI

````yaml put /v1/risk/alert-rules/{rule_id}/channels
openapi: 3.0.0
info:
  title: Range Risk API
  description: The Range Risk API for risk assessment of crypto addresses.
  version: 1.7.8
  contact: {}
servers:
  - url: https://api.range.org
    description: Range API Server
security:
  - Authorization: []
tags:
  - name: Risk
    description: Get risk information about a crypto address.
  - name: Risk v2
    description: >-
      Address risk assessment, workspace configuration, and signals catalogue
      (API v2).
  - name: Simulator
    description: Simulate a transaction on a network.
  - name: Alert Templates
    description: Browse alert rule templates available to the workspace.
  - name: Alert Rules
    description: Create and manage workspace alert rules.
  - name: Alert Events
    description: List and retrieve fired alert events.
  - name: Channels
    description: Configure alert delivery channels.
paths:
  /v1/risk/alert-rules/{rule_id}/channels:
    put:
      tags:
        - Alert Rules
      summary: Link channels to an alert rule
      description: >-
        Replaces the rule's subscribed channels with the supplied set. Each
        entry is { alert_channel_id, min_severity? }; alert_channel_id must be a
        channel in your workspace. Omit min_severity (or null) for no severity
        floor. Pass an empty array to clear.
      operationId: linkChannels
      parameters:
        - name: rule_id
          required: true
          in: path
          description: The alert rule id.
          schema:
            type: string
            example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LinkRuleChannelsDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AlertRuleDto'
components:
  schemas:
    LinkRuleChannelsDto:
      type: object
      properties:
        subscribed_channels:
          description: >-
            Channels to subscribe this rule to, each with an optional severity
            floor. Replaces the existing set (pass an empty array to clear all).
          type: array
          items:
            $ref: '#/components/schemas/RuleChannelLinkDto'
      required:
        - subscribed_channels
    AlertRuleDto:
      type: object
      properties:
        id:
          type: string
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        workspace_id:
          type: string
          example: workspace-123
        name:
          type: string
          nullable: true
          example: High gas on eth
        rule_type:
          type: string
          example: GasPressure
        network:
          type: string
          nullable: true
          example: eth
        severity:
          type: string
          example: high
        parameters:
          type: object
          additionalProperties: true
          example:
            threshold: 90
        trigger:
          type: string
          enum:
            - BLOCK
            - TICK
          example: BLOCK
        enabled:
          type: boolean
          example: true
        version:
          type: number
          description: Incremented each time the rule parameters change. Starts at 1.
          example: 1
        subscribed_channels:
          example:
            - alert_channel_id: 44444444-4444-4444-4444-444444444445
              min_severity: null
          type: array
          items:
            $ref: '#/components/schemas/SubscribedChannelDto'
        runner_id:
          type: string
          nullable: true
          example: alert-runner-eth-v2
        created_at:
          type: string
          example: '2026-05-14T12:00:00.000Z'
        updated_at:
          type: string
          example: '2026-05-14T12:00:00.000Z'
      required:
        - id
        - workspace_id
        - rule_type
        - severity
        - parameters
        - trigger
        - enabled
        - version
        - subscribed_channels
        - created_at
        - updated_at
    RuleChannelLinkDto:
      type: object
      properties:
        alert_channel_id:
          type: string
          format: uuid
          description: An alert_channels id in the caller workspace.
          example: 44444444-4444-4444-4444-444444444445
        min_severity:
          enum:
            - info
            - low
            - medium
            - high
            - critical
          type: string
          description: >-
            Minimum severity delivered to this destination for this rule. Omit
            (or null) for no floor — every alert is delivered. When set, only
            alerts of equal or higher severity are delivered.
          nullable: true
      required:
        - alert_channel_id
    SubscribedChannelDto:
      type: object
      properties:
        alert_channel_id:
          type: string
          example: 44444444-4444-4444-4444-444444444445
        min_severity:
          nullable: true
          enum:
            - info
            - low
            - medium
            - high
            - critical
          type: string
          example: null
      required:
        - alert_channel_id
  securitySchemes:
    Authorization:
      scheme: bearer
      bearerFormat: API Key
      description: 'Use Authorization: Bearer <api-key>'
      type: http

````