Request example
curl -X PATCH "https://api.buddy.works/workspaces/:workspace/webhooks/:webhook_id" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"target_url": "https://example.com/updated-webhook",
"secret_key": "updated-secret-key",
"name": "Updated CI Webhook",
"projects": [
"my-project",
"api-project",
"new-project"
],
"events": [
"PUSH",
"EXECUTION_STARTED",
"EXECUTION_SUCCESSFUL",
"EXECUTION_FAILED"
]
}'