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

# Update Webhook (partial)



## OpenAPI

````yaml https://api.coinvoyage.io/v3/openapi.json patch /webhooks/{webhook_id}
openapi: 3.1.0
info:
  title: CoinVoyage API (v3)
  description: >-
    CoinVoyage v3 payment API. Unified Intent envelope, snake_case money via the
    Amount shape, and a single SHA-256 signature scheme.
  version: 3.0.0
servers:
  - url: https://api.coinvoyage.io/v3
security: []
paths:
  /webhooks/{webhook_id}:
    patch:
      tags:
        - webhooks
      summary: Update Webhook (partial)
      operationId: v3UpdateWebhook
      parameters:
        - description: >-
            HMAC-SHA256 signature header:
            'APIKey=<api_key>,signature=<hex>,timestamp=<unix_timestamp>'. The
            signature is computed over METHOD + path (with the /v3 prefix
            stripped) + timestamp.
          in: header
          name: Authorization-Signature
          required: true
          schema:
            type: string
        - in: path
          name: webhook_id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateWebhookRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
          description: Webhook updated
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Invalid webhook URL
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Webhook not found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Invalid request body
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
      security:
        - Authorization: []
components:
  schemas:
    UpdateWebhookRequest:
      example:
        active: true
        subscription_events:
          - ORDER_CREATED
          - ORDER_COMPLETED
        url: https://example.com/webhook
      properties:
        url:
          example: https://example.com/webhook
          type:
            - string
            - 'null'
        subscription_events:
          example:
            - ORDER_CREATED
            - ORDER_COMPLETED
          items:
            type: string
          type: array
        active:
          example: true
          type:
            - boolean
            - 'null'
      type: object
    WebhookResponse:
      example:
        active: true
        id: cuidjkhg3e289y74u5t6v
        subscription_events:
          - ORDER_CREATED
          - ORDER_COMPLETED
        url: https://example.com/webhook
        webhook_secret: whsec_xxxxx
      properties:
        id:
          example: cuidjkhg3e289y74u5t6v
          type: string
        url:
          example: https://example.com/webhook
          type: string
        webhook_secret:
          example: whsec_xxxxx
          type: string
        subscription_events:
          example:
            - ORDER_CREATED
            - ORDER_COMPLETED
          items:
            type: string
          type: array
        active:
          example: true
          type: boolean
      required:
        - id
        - url
        - active
      type: object
    ErrorResponse:
      example:
        code: 400
        error: Bad Request
        message: Invalid request parameters
      properties:
        error:
          example: Bad Request
          type: string
        message:
          example: Invalid request parameters
          type: string
        code:
          example: 400
          format: int64
          type: integer
        details:
          anyOf:
            - type: string
            - type: number
            - type: object
      required:
        - error
        - message
        - code
      type: object
  securitySchemes:
    Authorization:
      description: >-
        HMAC-SHA256 signature. See the Authorization-Signature header parameter
        on signed operations.
      in: header
      name: Authorization
      type: apiKey

````