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