> ## 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.

# Batch Update Alert Channels

> Batch create, update, or soft-delete alert channels for your workspace.



## OpenAPI

````yaml put /v1/risk/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/channels:
    put:
      tags:
        - Channels
      summary: Add, update, or remove alert channels
      description: >-
        Batch create, update, or soft-delete alert channels for your workspace.
        Each operation specifies an action ("add", "update", or "remove") and
        the channel data.
      operationId: updateChannels
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateChannelsDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateChannelsResponseDto'
components:
  schemas:
    UpdateChannelsDto:
      type: object
      properties:
        operations:
          minItems: 1
          maxItems: 1000
          example:
            - action: add
              channel:
                name: Primary Slack Channel
                type: slack
                params:
                  webhook_url: https://hooks.slack.com/services/T00/B00/xxxx
            - action: update
              channel:
                id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                name: Renamed Channel
                enabled: false
            - action: remove
              channel:
                id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
          type: array
          items:
            $ref: '#/components/schemas/ChannelOperationDto'
      required:
        - operations
    UpdateChannelsResponseDto:
      type: object
      properties:
        acknowledged:
          type: boolean
          example: true
      required:
        - acknowledged
    ChannelOperationDto:
      type: object
      properties:
        action:
          type: string
          enum:
            - add
            - update
            - remove
          example: add
        channel:
          $ref: '#/components/schemas/ChannelDataDto'
      required:
        - action
        - channel
    ChannelDataDto:
      type: object
      properties:
        id:
          type: string
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        name:
          type: string
          minLength: 1
          maxLength: 255
          example: Primary Slack Channel
        type:
          enum:
            - slack
            - telegram
            - discord
            - webhook
            - pagerduty
            - email
            - incidentio
          type: string
          example: slack
        params:
          type: object
          additionalProperties: true
          example:
            webhook_url: https://hooks.slack.com/services/T00/B00/xxxx
        enabled:
          type: boolean
          example: false
  securitySchemes:
    Authorization:
      scheme: bearer
      bearerFormat: API Key
      description: 'Use Authorization: Bearer <api-key>'
      type: http

````