CreateWebhook registers a new webhook for a workspace.
(wsSlug string, input models.WebhookCreate)
| 627 | |
| 628 | // CreateWebhook registers a new webhook for a workspace. |
| 629 | func (c *Client) CreateWebhook(wsSlug string, input models.WebhookCreate) (*models.Webhook, error) { |
| 630 | var result models.Webhook |
| 631 | return &result, c.post("/workspaces/"+wsSlug+"/webhooks", input, &result) |
| 632 | } |
| 633 | |
| 634 | // DeleteWebhook removes a webhook by ID. |
| 635 | func (c *Client) DeleteWebhook(wsSlug, webhookID string) error { |
no test coverage detected