Skip to content

Latest commit

 

History

History
33 lines (28 loc) · 3.94 KB

getwebhookresponsebody.md

File metadata and controls

33 lines (28 loc) · 3.94 KB

GetWebhookResponseBody

Example Usage

import { GetWebhookResponseBody } from "@vercel/sdk/models/getwebhookop.js";

let value: GetWebhookResponseBody = {
  events: [
    "deployment.created",
  ],
  id: "account_hook_GflD6EYyo7F4ViYS",
  url: "https://my-webhook.com",
  ownerId: "ZspSRT4ljIEEmMHgoDwKWDei",
  createdAt: 1567024758130,
  updatedAt: 1567024758130,
  projectIds: [
    "prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB",
  ],
};

Fields

Field Type Required Description Example
events models.GetWebhookEvents[] ✔️ The webhooks events deployment.created
id string ✔️ The webhook id account_hook_GflD6EYyo7F4ViYS
url string ✔️ A string with the URL of the webhook https://my-webhook.com
ownerId string ✔️ The unique ID of the team the webhook belongs to ZspSRT4ljIEEmMHgoDwKWDei
createdAt number ✔️ A number containing the date when the webhook was created in in milliseconds 1567024758130
updatedAt number ✔️ A number containing the date when the webhook was updated in in milliseconds 1567024758130
projectIds string[] The ID of the projects the webhook is associated with [
"prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB"
]