import { PatchV2WebhooksWebhookIdRequest } from "attio-js/models/operations/patchv2webhookswebhookid.js";
let value: PatchV2WebhooksWebhookIdRequest = {
webhookId: "23e42eaf-323a-41da-b5bb-fd67eebda553",
requestBody: {
data: {
targetUrl: "https://example.com/webhook",
subscriptions: [
{
eventType: "note.created",
filter: {
dollarAnd: [
{
field: "parent_object_id",
operator: "equals",
value: "97052eb9-e65e-443f-a297-f2d9a4a7f795",
},
],
},
},
],
},
},
};
Field | Type | Required | Description | Example |
---|---|---|---|---|
webhookId |
string | ✔️ | N/A | 23e42eaf-323a-41da-b5bb-fd67eebda553 |
requestBody |
operations.PatchV2WebhooksWebhookIdRequestBody | ✔️ | N/A |