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

# Update webhook

> Updates an existing webhook



## OpenAPI

````yaml PUT /webhooks/{webhookId}
openapi: 3.1.0
info:
  title: Kakiyo API
  description: API for automating LinkedIn outreach campaigns with AI-powered conversations
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.kakiyo.com/v1
security:
  - bearerAuth: []
paths:
  /webhooks/{webhookId}:
    put:
      summary: Update Webhook
      description: Updates an existing webhook
      operationId: updateWebhook
      parameters:
        - name: webhookId
          in: path
          description: ID of the webhook to update
          required: true
          schema:
            type: string
      requestBody:
        description: Webhook properties to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateWebhookRequest'
        required: true
      responses:
        '200':
          description: Webhook updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: webhook_12345abcde
                  message:
                    type: string
                    example: Webhook updated successfully
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Authentication failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Webhook not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    UpdateWebhookRequest:
      type: object
      properties:
        name:
          type: string
          example: Updated CRM Integration
        url:
          type: string
          format: uri
          example: https://your-app.com/kakiyo/webhook/v2
        secret:
          type: string
          example: your_new_webhook_secret
        events:
          type: array
          items:
            type: string
            enum:
              - '*'
              - linkedin.message.sent
              - linkedin.message.received
              - linkedin.invitation.sent
              - linkedin.invitation.accepted
              - prospect.qualification.manual
              - prospect.unqualified
          example:
            - linkedin.message.received
            - prospect.qualification.manual
            - linkedin.message.sent
        active:
          type: boolean
          example: true
    Error:
      type: object
      properties:
        error:
          type: string
          example: validation_error
        message:
          type: string
          example: The request parameters failed validation
        details:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                example: name
              message:
                type: string
                example: The name field is required
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````