import { Webhook } from "pushpress/models/components/webhook.js";
let value: Webhook = {
id: "UUID",
url: "https://new-webhook-url.com",
events: [
"event_3",
"event_4",
],
created: 1354.74,
updated: 2982.82,
company: "McLaughlin LLC",
};
Field | Type | Required | Description | Example |
---|---|---|---|---|
id |
string | ✔️ | N/A | UUID |
url |
string | ✔️ | URL to post the event data to | https://new-webhook-url.com |
events |
string[] | ✔️ | List of events the webhook is subscribed to | [ "event_3", "event_4" ] |
created |
number | ✔️ | N/A | |
updated |
number | ✔️ | N/A | |
company |
string | ✔️ | companyId of the company to which the webhook belongs |