Feature layer event triggers

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 triggerValueDescription

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:

  • A field is added to a sublayer or table.
  • A field is deleted from a sublayer or table.
  • A domain is added to a field in a sublayer or table.
  • A domain is removed from a field in a sublayer or table.
  • A related table is added to a sublayer.
  • A related table is removed from a sublayer.
  • A user defines or alters the definition of a join relationship for a sublayer.
  • The name, type, length, or alias of a field is altered.
  • The geometry type of a sublayer is altered.

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:

  • The name of any of the sublayers
  • The symbology or labels defined for the layer
  • The geographic extent defined for the layer
  • Advanced layer definitions such time zone information or stored definition expressions
  • Whether attachments are allowed for the layer

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:

  • The settings defined for the feature layer or table, such as whether it can have data exported from it, can be used in offline or collaborative workflows, and whether ownership-based access control is enforced
  • The list of layers or tables included in the feature layer or table item changes