> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-home-button.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Actualizar alerta

> Actualiza una alerta existente



## OpenAPI

````yaml /es/clickstack/api-reference/hyperdx-openapi.json put /api/v2/alerts/{id}
openapi: 3.0.0
info:
  description: API para gestionar alertas y paneles de HyperDX
  title: HyperDX External API
  version: 2.0.0
servers:
  - description: Servidor de API de producción
    url: https://api.hyperdx.io
  - description: Servidor actual
    url: /
security:
  - BearerAuth: []
tags:
  - description: Endpoints para gestionar paneles y sus visualizaciones
    name: Dashboards
  - description: Endpoints para gestionar alertas de monitorización
    name: Alerts
paths:
  /api/v2/alerts/{id}:
    put:
      tags:
        - Alerts
      summary: Actualizar alerta
      description: Actualiza una alerta existente
      operationId: updateAlert
      parameters:
        - description: ID de la alerta
          example: 65f5e4a3b9e77c001a123456
          in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            examples:
              updateAlert:
                summary: Actualizar las propiedades de la alerta
                value:
                  channel:
                    type: webhook
                    webhookId: 65f5e4a3b9e77c001a789012
                  dashboardId: 65f5e4a3b9e77c001a567890
                  interval: 1h
                  message: Updated threshold and interval
                  name: Updated Alert Name
                  source: tile
                  threshold: 500
                  thresholdType: above
                  tileId: 65f5e4a3b9e77c001a901234
            schema:
              $ref: '#/components/schemas/UpdateAlertRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AlertResponse'
          description: Alerta actualizada correctamente
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: No autorizado
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Alerta no encontrada
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error del servidor o error de validación
components:
  schemas:
    UpdateAlertRequest:
      properties:
        channel:
          properties:
            type:
              example: webhook
              type: string
            webhookId:
              example: 65f5e4a3b9e77c001a789012
              type: string
          type: object
        dashboardId:
          example: 65f5e4a3b9e77c001a567890
          type: string
        interval:
          example: 1h
          type: string
        message:
          example: Updated message
          type: string
        name:
          example: Updated Alert Name
          type: string
        source:
          enum:
            - tile
            - search
          example: tile
          type: string
        threshold:
          example: 500
          type: number
        thresholdType:
          enum:
            - above
            - below
          example: above
          type: string
        tileId:
          example: 65f5e4a3b9e77c001a901234
          type: string
      type: object
    AlertResponse:
      properties:
        data:
          $ref: '#/components/schemas/Alert'
      type: object
    Error:
      properties:
        message:
          type: string
      type: object
    Alert:
      properties:
        channel:
          properties:
            type:
              example: webhook
              type: string
            webhookId:
              example: 65f5e4a3b9e77c001a789012
              type: string
          type: object
        createdAt:
          example: '2023-01-01T00:00:00.000Z'
          format: date-time
          type: string
        dashboard:
          example: 65f5e4a3b9e77c001a567890
          type: string
        groupBy:
          nullable: true
          type: string
        id:
          example: 65f5e4a3b9e77c001a123456
          type: string
        interval:
          example: 15m
          type: string
        message:
          example: Error rate exceeds threshold
          type: string
        name:
          example: High Error Rate
          type: string
        savedSearch:
          nullable: true
          type: string
        silenced:
          nullable: true
          type: boolean
        source:
          enum:
            - tile
            - search
          example: tile
          type: string
        state:
          example: inactive
          type: string
        team:
          example: 65f5e4a3b9e77c001a345678
          type: string
        threshold:
          example: 100
          type: number
        thresholdType:
          enum:
            - above
            - below
          example: above
          type: string
        tileId:
          example: 65f5e4a3b9e77c001a901234
          type: string
        updatedAt:
          example: '2023-01-01T00:00:00.000Z'
          format: date-time
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: API Key
      scheme: bearer
      type: http

````