Skip to main content
PATCH
/
webhooks
/
{webhook}
Update Webhook
curl --request PATCH \
  --url https://padelapi.org/api/webhooks/{webhook} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "events": []
}
'
{
  "id": 123,
  "self": "<string>",
  "url": "<string>",
  "events": [
    "<unknown>"
  ],
  "secret": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>"
}

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.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

webhook
integer
required

Body

application/json
url
string<uri>

Public HTTPS URL where webhook events will be delivered.

events
enum<string>[]

List of events the consumer wants to subscribe to. Send an empty array to pause delivery.

Available options:
tournament.created,
tournament.updated,
tournament.deleted,
match.created,
match.updated,
match.deleted,
player.created,
player.updated,
player.deleted

Response

WebhookResource

id
integer
required
self
string
required
url
string
required
events
any[]
required
secret
string
required
created_at
string
required
updated_at
string
required