PUT
Update a webhook
Scope:
developers:webhooks.writehttps://api.holded.com/api/v2/webhooks/{webhookId}Updates the URL, events and description of a webhook.
Parameters
Path parameters
webhookId
stringrequiredWebhook 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 updatedError responses
400Bad requestapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Webhook not foundapplication/json409An event subscription already exists for this account422The URL is not publicly accessible429Rate limit exceededapplication/json