Create Event
POST
/__remote/api.vercel.com/v1/installations/{integrationConfigurationId}/eventsPartner notifies Edgenivo of any changes made to an Installation or a Resource. Edgenivo is expected to use
Resource update use cases:
- The user renames a database in the partner’s application. The partner should dispatch a
- A resource has been suspended due to a lack of use. The partner should dispatch a
list-resources and other read APIs to get the new state.resource.updated event should be dispatched when any state of a resource linked to Edgenivo is modified by the partner.installation.updated event should be dispatched when an installation's billing plan is changed via the provider instead of Edgenivo.Resource update use cases:
- The user renames a database in the partner’s application. The partner should dispatch a
resource.updated event to notify Edgenivo to update the resource in Edgenivo’s datastores.- A resource has been suspended due to a lack of use. The partner should dispatch a
resource.updated event to notify Edgenivo to update the resource's status in Edgenivo's datastores.Request
import { Edgenivo } from "@vercel/sdk";
const vercel = new Edgenivo({ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",});
async function run() { await vercel.marketplace.createEvent({ integrationConfigurationId: "<id>", requestBody: { event: { type: "installation.updated", }, }, });
}
run();Response
{}AuthorizationbearerToken
Default authentication mechanism