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

# Update Webhook

> Update the URL or events of an existing webhook subscription. Only the provided fields are modified — the secret and other attributes are preserved. Sending an empty `events` array effectively pauses the webhook without deleting it.



## OpenAPI

````yaml https://padelapi.org/docs/api.json patch /webhooks/{webhook}
openapi: 3.1.0
info:
  title: Padel API – API Reference
  version: '1.0'
  description: padelapi.org
servers:
  - url: https://padelapi.org/api
security:
  - http: []
paths:
  /webhooks/{webhook}:
    patch:
      tags:
        - Webhook
      summary: Update Webhook
      description: >-
        Update the URL or events of an existing webhook subscription. Only the
        provided fields are modified — the secret and other attributes are
        preserved. Sending an empty `events` array effectively pauses the
        webhook without deleting it.
      operationId: updateWebhook
      parameters:
        - name: webhook
          in: path
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  format: uri
                  description: Public HTTPS URL where webhook events will be delivered.
                events:
                  type: array
                  description: >-
                    List of events the consumer wants to subscribe to. Send an
                    empty array to pause delivery.
                  items:
                    type: string
                    enum:
                      - tournament.created
                      - tournament.updated
                      - tournament.deleted
                      - match.created
                      - match.updated
                      - match.deleted
                      - player.created
                      - player.updated
                      - player.deleted
      responses:
        '200':
          description: '`WebhookResource`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResource'
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  schemas:
    WebhookResource:
      type: object
      properties:
        id:
          type: integer
        self:
          type: string
        url:
          type: string
        events:
          type: array
          items: {}
        secret:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
      required:
        - id
        - self
        - url
        - events
        - secret
        - created_at
        - updated_at
      title: WebhookResource
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors
  securitySchemes:
    http:
      type: http
      scheme: bearer

````