Skip to content
Go to Micro

Delete a webhook

client.Webhooks.Delete(ctx, webhookID, body) error
DELETE/v2/webhooks/{teamId}/{webhookId}

Delete a webhook

ParametersExpand Collapse
webhookID string
formatuuid
body WebhookDeleteParams
TeamID param.Field[string]Optional
formatuuid

Delete a webhook

package main

import (
  "context"

  "github.com/micro-so/micro-sdk-go"
  "github.com/micro-so/micro-sdk-go/option"
)

func main() {
  client := micro.NewClient(
    option.WithAPIKey("My API Key"),
    option.WithTeamID("My Team ID"),
  )
  err := client.Webhooks.Delete(
    context.TODO(),
    "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    micro.WebhookDeleteParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
}
Returns Examples