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

# Update a webhook endpoint



## OpenAPI

````yaml /openapi.json put /v1/webhooks/{id}
openapi: 3.0.0
info:
  contact: {}
  description: >-
    Comprehensive payment platform API supporting fiat and crypto payments,
    currency conversion, and compliance management
  title: Zuba Payment Platform API
  version: '1.0'
servers: []
security: []
tags:
  - description: Manage M2M API keys and credentials
    name: API Keys
  - description: Internal ledger accounts and transactions
    name: Ledger
  - description: Handle incoming payments and deposits
    name: Pay-ins
  - description: Manage payouts, beneficiaries, and SEPA transfers
    name: Payouts
  - description: Manage outbound webhook endpoints and deliveries
    name: Webhooks
paths:
  /v1/webhooks/{id}:
    put:
      tags:
        - Webhooks
      summary: Update a webhook endpoint
      operationId: WebhookController_update
      parameters:
        - description: Webhook endpoint ID
          in: path
          name: id
          required: true
          schema:
            example: 123e4567-e89b-12d3-a456-426614174000
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateWebhookEndpointDto'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookEndpointResponseDto'
          description: Updated webhook endpoint
        '401':
          description: Unauthorized
        '404':
          description: Endpoint not found
      security:
        - bearer: []
components:
  schemas:
    UpdateWebhookEndpointDto:
      properties:
        enabled:
          description: Whether the endpoint is enabled
          type: boolean
        events:
          description: Event types to subscribe to
          example:
            - payout.paid
            - payout.failed
          items:
            enum:
              - payout.processing
              - payout.paid
              - payout.failed
              - payout.reverted
              - payout.cancelled
              - webhook.test
              - account.created
            type: string
          type: array
        url:
          description: HTTPS URL to receive webhook events
          example: https://example.com/webhooks
          type: string
      type: object
    WebhookEndpointResponseDto:
      properties:
        createdAt:
          description: Creation timestamp
          type: string
        enabled:
          description: Whether the endpoint is enabled
          type: boolean
        events:
          description: Subscribed event types
          items:
            enum:
              - payout.processing
              - payout.paid
              - payout.failed
              - payout.reverted
              - payout.cancelled
              - webhook.test
              - account.created
            type: string
          type: array
        id:
          description: Endpoint ID
          type: string
        signingSecretHint:
          description: Last 4 characters of the signing secret
          example: ab1f
          type: string
        updatedAt:
          description: Last update timestamp
          type: string
        url:
          description: Webhook URL
          type: string
      required:
        - id
        - url
        - events
        - enabled
        - signingSecretHint
        - createdAt
        - updatedAt
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: Enter Auth0 JWT token
      scheme: bearer
      type: http

````