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./__remote/api.vercel.com/v1/installations/{integrationConfigurationId}/events
const response = await fetch('/__remote/api.vercel.com/v1/installations/integrationConfigurationId/events', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN', 'Content-Type': 'application/json', }, body: JSON.stringify({ "event": { "type": "installation.updated", "billingPlanId": "example_id" } }),});
const data = await response.json();console.log(data);Response
{}AuthorizationbearerToken
Default authentication mechanism
integrationConfigurationIdstringRequired