Creates a new webhook.
https://yourproject.userecho.com/api/v2/hooks.json
Parameter | Value | Required? | Default | Options | Description |
---|---|---|---|---|---|
event | String | yes | Get available events with GET hooks/events | Event type | |
target_url | String | yes | Target URL that will be called |
{ "event": "topic.created", "target_url": "https://mysite.com/events/handler/" }
{ "target_url": "https://mysite.com/events/handler/", "id": 12, "events": { "comment.created": true, "topic.satisfaction_received": false, "comment.accepted": false, "topic.deleted": false, "topic.created": false, "comment.deleted": false, "topic.accepted": false } }