Create Event
https://api.vercel.com/v1/installations/{integrationConfigurationId}/eventslist-resources and other read APIs to get the new state.resource.updated event should be dispatched when any state of a resource linked to Vercel is modified by the partner.installation.updated event should be dispatched when an installation's billing plan is changed via the provider instead of Vercel.Resource update use cases:
- The user renames a database in the partner’s application. The partner should dispatch a
resource.updated event to notify Vercel to update the resource in Vercel’s datastores.- A resource has been suspended due to a lack of use. The partner should dispatch a
resource.updated event to notify Vercel to update the resource's status in Vercel's datastores.const response = await fetch('https://api.vercel.com/v1/installations/string/events', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN', 'Content-Type': 'application/json', }, body: JSON.stringify({ "event": "value" }),});
const data = await response.json();console.log(data);{}Default authentication mechanism