Forge apps can subscribe to Compass events for:
Your Forge app must have permission from the site admin to access the data it provides within the event payload. The OAuth scope required for each event is documented below.
Forge apps can subscribe to these events on a component:
avi:compass:created:component_linkavi:compass:updated:component_linkavi:compass:deleted:component_linkAll component events require the OAuth scope read:component:compass.
All component events share the same payload format.
| Name | Type | Description |
|---|---|---|
| eventType | string | The event name such as avi:compass:created:component_link. |
| selfGenerated | boolean | Whether the event was triggered by the app receiving it. See Detect and filter self-generated events. |
| component | Component | The component that had a link change |
1 2interface Component { id: string; }
This is an example payload.
1 2{ "eventType": "avi:compass:created:component_link", "component": { "id": "ari:cloud:compass:00000000-0000-0000-0000-000000000000:component/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000" } }
Rate this page: