For the complete documentation index, see llms.txt. This page is also available as Markdown.

License Custom Field and Device Variable Events

Events emitted when license custom fields and device variables are created, updated, or deleted.

License custom field and device variable events report changes to license-specific custom-field values and device key-value pairs.

Use the event data objects reference for field definitions.

License custom fields

A license custom field is a product custom-field value assigned to one license.

license_custom_field.created

Sent when:

  • a custom field value is set on a license in the vendor platform or with the Management API,

  • a license is created with custom field values in a new order or a trial: one event per value.

Event data: license_custom_field when the Vendor Platform or Management API makes the change.

For licenses created through an order or trial, the fields appear directly in data. They have no license_custom_field wrapper.

license_custom_field.updated

Sent when: a license's custom field value is changed in the vendor platform or with the Management API.

Event data: license_custom_field

license_custom_field.deleted

Sent when: a custom field value is removed from a license in the vendor platform or with the Management API.

Event data: license_custom_field, as it was before deletion

Device variables

Device variables are key-value pairs sent by your application for a device. You can also add them through the Vendor Platform.

device_variable.created

Sent when: Your application sends a variable the device does not have yet. This can happen through Track Device Variables or variables in an activation or deactivation. The event is also sent when someone adds a variable through the Vendor Platform or Management API. One event is sent for each variable.

device_variable.updated

Sent when: Your application sends a new value for an existing variable. The event is also sent when someone edits it through the Vendor Platform or Management API.

Sending the same value again does not emit an event.

device_variable.deleted

Sent when: Someone deletes a variable through the Vendor Platform or Management API.

Your application cannot delete variables. The License API does not emit this event.

Device variable data location

All three device-variable events use a data shape that depends on the change source.

Change source
Event data

Vendor Platform or Management API

device_variable: id, device_id, variable, value

Your application through the License API

Directly in data: id, variable, value, device (the device ID)

Last updated

Was this helpful?