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
Returns
WebhookUpdateResponsestruct
The WebhooksServiceUpdateResponse 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"
}
}