CreateWebhook registers a new webhook for a workspace.
(wsSlug string, input models.WebhookCreate)
| 1836 | |
| 1837 | // CreateWebhook registers a new webhook for a workspace. |
| 1838 | func (c *Client) CreateWebhook(wsSlug string, input models.WebhookCreate) (*models.Webhook, error) { |
| 1839 | var result models.Webhook |
| 1840 | return &result, c.post("/workspaces/"+url.PathEscape(wsSlug)+"/webhooks", input, &result) |
| 1841 | } |
| 1842 | |
| 1843 | // DeleteWebhook removes a webhook by ID. |
| 1844 | func (c *Client) DeleteWebhook(wsSlug, webhookID string) error { |
no test coverage detected