Skip to content
  • Auto
  • Light
  • Dark
Get Started

Delete

Delete
client.Webhooks.Delete(ctx, id, body) (*WebhookDeleteResponse, error)
delete/api/v1/webhooks/{id}

Invokes the c1.api.webhooks.v1.WebhooksService.Delete method.

Parameters
idstring

The id field.

bodyBodyfieldWebhookDeleteParams
Hide ParametersShow Parameters
Bodyfield
optional
param.Field[any]

The WebhooksServiceDeleteRequest message.

Returns
WebhookDeleteResponseinterface

Empty response body. Status code indicates success.

Request example Go
package main

import (
  "context"
  "fmt"

  "github.com/stainless-sdks/-go"
  "github.com/stainless-sdks/-go/option"
)

func main() {
  client := conductoronesdk.NewClient(
    option.WithAPIKey("My API Key"),
  )
  webhook, err := client.Webhooks.Delete(
    context.TODO(),
    "id",
    conductoronesdk.WebhookDeleteParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", webhook)
}
200 Example
{}