Skip to main content
PUT

Update a webhook

Scope:developers:webhooks.write
https://api.holded.com/api/v2/webhooks/{webhookId}

Updates the URL, events and description of a webhook.

Parameters

Path parameters

webhookIdstringrequired

Webhook ID

Request body

object
urlstring<uri>required

Callback URL

events[]string[]required

Events to subscribe to

descriptionstringoptional

Human-readable description

Request

python
import requests

url = "https://api.holded.com/api/v2/webhooks/507f1f77bcf86cd799439011"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

payload = {
    "url": "https://example.com/webhook",
    "events": [
        "invoice.create"
    ],
    "description": "My webhook"
}
response = requests.put(url, headers=headers, json=payload)
print(response.json())

Responses

Success responses

204Webhook updated

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Webhook not foundapplication/json
409An event subscription already exists for this account
422The URL is not publicly accessible
429Rate limit exceededapplication/json