Skip to content
  • Auto
  • Light
  • Dark
Get Started

Update

Update
client.Webhooks.Update(ctx, id, body) (*WebhookWebhookWebhookUpdateResponse, error)
post/api/v1/webhooks/{id}

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

Parameters
idstring

The id field.

bodyUpdateMaskfieldWebhookfieldWebhookUpdateParams
Hide ParametersShow Parameters
UpdateMaskfield
optional
param.Field[string]
Webhookfield
optional
param.Field[IDstringCreatedAtTimeDeletedAtTimeDescriptionstringDisplayNamestringUpdatedAtTimeURLstringWebhook]

The Webhook message.

Returns
WebhookUpdateResponsestruct

The WebhooksServiceUpdateResponse message.

Hide ParametersShow Parameters
WebhookIDstringCreatedAtTimeDeletedAtTimeDescriptionstringDisplayNamestringUpdatedAtTimeURLstringWebhook
optional

The Webhook message.

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.Update(
    context.TODO(),
    "id",
    conductoronesdk.WebhookUpdateParams{

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