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

# Update Webhook

> Change which events a subscription receives.

The signing secret is kept: a receiver that verifies with it — and the
tools signed with the same secret — keep working, which deleting and
re-creating the subscription would break.



## OpenAPI

````yaml /openapi.json patch /v1/webhooks/{webhook_id}
openapi: 3.1.0
info:
  title: TurnCall
  description: Production voice agent platform API
  version: 2.0.0
servers: []
security: []
paths:
  /v1/webhooks/{webhook_id}:
    patch:
      tags:
        - webhooks
      summary: Update Webhook
      description: |-
        Change which events a subscription receives.

        The signing secret is kept: a receiver that verifies with it — and the
        tools signed with the same secret — keep working, which deleting and
        re-creating the subscription would break.
      operationId: update_webhook_v1_webhooks__webhook_id__patch
      parameters:
        - name: webhook_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Webhook Id
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateWebhookRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Update Webhook V1 Webhooks  Webhook Id  Patch
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UpdateWebhookRequest:
      properties:
        events:
          items:
            type: string
          type: array
          minItems: 1
          title: Events
          description: >-
            Event types to subscribe to, or ['*'] for all. Replaces the current
            list; the signing secret is kept.
      type: object
      required:
        - events
      title: UpdateWebhookRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

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