Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 2.96 KB

patchv2webhookswebhookidrequest.md

File metadata and controls

37 lines (32 loc) · 2.96 KB

PatchV2WebhooksWebhookIdRequest

Example Usage

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",
              },
            ],
          },
        },
      ],
    },
  },
};

Fields

Field Type Required Description Example
webhookId string ✔️ N/A 23e42eaf-323a-41da-b5bb-fd67eebda553
requestBody operations.PatchV2WebhooksWebhookIdRequestBody ✔️ N/A