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

# Editar un aviso

> Reactivarlo (`active: true`) pone los fallos seguidos en cero.



## OpenAPI

````yaml /openapi.yaml patch /webhooks/{id}
openapi: 3.1.0
info:
  title: API de Impulso Digital
  version: '1.0'
  description: >
    Conecta tu CRM, tu tienda o un asistente de IA a una cuenta de Impulso
    Digital: envía mensajes y plantillas por WhatsApp, lee conversaciones,
    maneja contactos y mensajes programados, y recibe avisos (webhooks) de lo
    que pasa en la cuenta.
  contact:
    name: Impulso Digital
    url: https://impulsodigital.app
    email: soporte@impulsodigital.app
servers:
  - url: https://api.impulsodigital.app/v1
    description: Producción
security:
  - llave: []
tags:
  - name: Cuenta
  - name: Mensajes
  - name: Conversaciones
  - name: Contactos
  - name: Plantillas
  - name: Programados
  - name: Avisos
paths:
  /webhooks/{id}:
    patch:
      tags:
        - Avisos
      summary: Editar un aviso
      description: 'Reactivarlo (`active: true`) pone los fallos seguidos en cero.'
      parameters:
        - $ref: '#/components/parameters/Id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  format: uri
                events:
                  type: array
                  items:
                    $ref: '#/components/schemas/Event'
                description:
                  type: string
                active:
                  type: boolean
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Webhook'
components:
  parameters:
    Id:
      name: id
      in: path
      required: true
      schema:
        type: string
  schemas:
    Event:
      type: string
      enum:
        - message.received
        - message.sent
        - message.delivered
        - message.read
        - message.failed
        - conversation.created
        - conversation.transferred
        - conversation.stage_changed
        - contact.created
        - order.created
        - order.status_changed
    Webhook:
      type: object
      properties:
        id:
          type: string
        url:
          type: string
          format: uri
        description:
          type:
            - string
            - 'null'
        events:
          type: array
          items:
            $ref: '#/components/schemas/Event'
        active:
          type: boolean
        consecutive_failures:
          type: integer
        disabled_at:
          type:
            - string
            - 'null'
          format: date-time
        disabled_reason:
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
  securitySchemes:
    llave:
      type: http
      scheme: bearer
      description: >-
        Tu llave de API: `Authorization: Bearer imp_live_…`. También se acepta
        la cabecera `X-API-Key`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.