The events that trigger a feature layer webhook to fire are used to track changes to the layer. For each webhook you create, you specify the events that will be tracked.
The following table describes the event triggers that you can define for webhooks on hosted feature layers, hosted feature layer views, and hosted tables:
| Event trigger | Value | Description |
|---|---|---|
Any supported event is triggered. | * | Sends the payload when any of the events listed in this table takes place. |
A feature or row is created. | FeaturesCreated | The payload is sent when a user adds a feature or row to a sublayer or table in the layer. |
A feature or row is updated. | FeaturesUpdated | The payload is sent when a user alters an existing feature or row—such as editing an attribute or moving the feature. |
A feature or row is deleted. | FeaturesDeleted | The payload is sent when a user deletes a feature or row. |
A feature or row is edited (for example, insertion, update, or deletion). Note:Attachment edits may not cause the FeaturesEdited event trigger to fire. Use one of the next three triggers to track creating, updating, or deleting attachments. | FeaturesEdited | The payload is sent when any of the previous three types of edits are performed. |
An attachment is added to a feature or row in one of the layers. | AttachmentsCreated | The payload is sent when a user adds an attachment to a feature or row. |
A feature attachment is updated. | AttachmentsUpdated | The payload is sent when a user updates an existing attachment. |
An attachment is deleted from a feature or row in one of the layers. | AttachmentsDeleted | The payload is sent when a user deletes an attachment from a feature. |
A feature layer or table's schema changes. | LayerSchemaChanged | This trigger fires for any of the following events:
|
The definition for one or more layer in the feature layer or table item changes. | LayerDefinitionChanged | Sends the payload whenever one of the following layer properties is altered:
Adding or deleting fields and changing field types, aliases, or geometry type will also cause this trigger to fire because a layer's definition includes the list and description of its fields. |
A feature layer or table item definition changes. | FeatureServiceDefinitionChanged | Sends the payload when definitions that affect the entire feature layer or table item are altered. These include the following:
|