Edit
- PATCH
- /workspaces
- /:domain
- /webhooks
- /:webhook_id
Edits a webhook. Restricted to admins only.
Example:
curl -X PATCH "https://api.buddy.works/workspaces/:domain/webhooks/:webhook_id" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"events": [
"EXECUTION_FAILED",
"EXECUTION_FINISHED"
]
}'
EXAMPLE RESPONSE{ "url": "https://api.buddy.works/workspaces/buddy/webhooks/1", "html_url": "https://app.buddy.works/buddy/webhook/1", "id": 1, "target_url": "http://localhost", "secret_key": "mysecretkey", "projects": [ "company-website", "beta-project" ], "events": [ "EXECUTION_FINISHED", "EXECUTION_FAILED" ], "requests": [] }
STATUS200 OK
LIMITSX-Rate-Limit-Limit: 1 X-Rate-Limit-Remaining: 999