Skip to content
  • Auto
  • Light
  • Dark
Get Started

Update

Update
client.webhooks.update(stringid, WebhookUpdateParamsbody?, RequestOptionsoptions?): webhookWebhookWebhookUpdateResponse
post/api/v1/webhooks/{id}

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

Parameters
idstring

The id field.

bodyupdateMaskunionwebhookWebhookWebhookUpdateParams
Hide ParametersShow Parameters
updateMaskunion
optional
string | null
webhookidstringcreatedAtstringdeletedAtstringdescriptionstringdisplayNamestringupdatedAtstringurlstringWebhook
optional

The Webhook message.

Returns
WebhookUpdateResponse

The WebhooksServiceUpdateResponse message.

Hide ParametersShow Parameters
webhookidstringcreatedAtstringdeletedAtstringdescriptionstringdisplayNamestringupdatedAtstringurlstringWebhook
optional

The Webhook message.

Request example TypeScript
import ConductoroneSDK from 'conductorone-sdk';

const client = new ConductoroneSDK({
  apiKey: 'My API Key',
});

const webhook = await client.webhooks.update('id');

console.log(webhook.webhook);
200 Example
{
  "webhook": {
    "id": "id",
    "description": "description",
    "displayName": "displayName",
    "url": "url"
  }
}