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

# Update webhook URL

> Update your registered webhook URLs. Your collection_url receives collection events, virtual account events, and customer KYC events. Required scope: `webhook:write`.



## OpenAPI

````yaml /api-reference/webhook/update-openapi.json put /api/external/webhook/{businessWebhook}
openapi: 3.1.0
info:
  title: Blaaiz Platform API - Update Webhook URLs
  version: 1.0.0
  description: Update your registered webhook URLs.
servers:
  - url: https://api-prod.blaaiz.com
  - url: https://api-dev.blaaiz.com
security: []
tags:
  - name: Webhook
paths:
  /api/external/webhook/{businessWebhook}:
    put:
      tags:
        - Webhook
      summary: Update webhook URL
      description: >-
        Update your registered webhook URLs. Your collection_url receives
        collection events, virtual account events, and customer KYC events.
        Required scope: `webhook:write`.
      parameters:
        - name: businessWebhook
          in: path
          required: true
          schema:
            type: string
          description: Webhook ID or reference to update.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookUpdateRequest'
            example:
              collection_url: https://yourapp.com/webhooks/collection
              payout_url: https://yourapp.com/webhooks/payout
      responses:
        '200':
          description: Webhook record updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookUpdateResponse'
              example:
                message: Webhook record updated successfully
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                message: Invalid or missing access token
      security:
        - oauth2ClientCredentials:
            - webhook:write
components:
  schemas:
    WebhookUpdateRequest:
      type: object
      properties:
        collection_url:
          type: string
          format: uri
          description: >-
            Collection webhook URL. This receives collection events, virtual
            account events, and customer KYC events.
        payout_url:
          type: string
          format: uri
          description: Payout webhook URL
    WebhookUpdateResponse:
      type: object
      properties:
        message:
          type: string
      required:
        - message
    Error:
      type: object
      properties:
        message:
          type: string
      required:
        - message
  securitySchemes:
    oauth2ClientCredentials:
      type: oauth2
      description: >-
        Use your OAuth client credentials to obtain a short-lived Bearer token
        from POST /oauth/token.
      flows:
        clientCredentials:
          tokenUrl: /oauth/token
          scopes:
            webhook:write: Create and update webhooks.

````