CreateWebhook registers a new webhook for a workspace.
(wsSlug string, input models.WebhookCreate)
| 778 | |
| 779 | // CreateWebhook registers a new webhook for a workspace. |
| 780 | func (c *Client) CreateWebhook(wsSlug string, input models.WebhookCreate) (*models.Webhook, error) { |
| 781 | var result models.Webhook |
| 782 | return &result, c.post("/workspaces/"+wsSlug+"/webhooks", input, &result) |
| 783 | } |
| 784 | |
| 785 | // DeleteWebhook removes a webhook by ID. |
| 786 | func (c *Client) DeleteWebhook(wsSlug, webhookID string) error { |
no test coverage detected