MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / CreateWebhook

Method CreateWebhook

internal/cli/client.go:629–632  ·  view source on GitHub ↗

CreateWebhook registers a new webhook for a workspace.

(wsSlug string, input models.WebhookCreate)

Source from the content-addressed store, hash-verified

627
628// CreateWebhook registers a new webhook for a workspace.
629func (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.
635func (c *Client) DeleteWebhook(wsSlug, webhookID string) error {

Callers 1

webhooksCreateCmdFunction · 0.45

Calls 1

postMethod · 0.95

Tested by

no test coverage detected