Create or update a preset
A unique name for the preset.
200 OK on success.
Example — set a 5-minute inform interval for all devices tagged “test”:
Delete a preset
The name of the preset to delete.
List presets
Preset object fields
Integer controlling evaluation priority. Presets with lower weight values are applied first.
A JSON-encoded string containing a MongoDB-style filter that determines which devices the preset applies to. The value is a string (not an inline object) so it must be double-encoded.Examples:
"{\"param\": \"value\"}"— match devices where param equals value"{\"_tags\": \"test\"}"— match devices with the “test” tag"{\"param\": \"value\", \"param2\": {\"$ne\": \"value2\"}}"— compound filter
$gt, $lt, $gte, $lte, $ne.Array of configuration entries to apply when the preset matches. See configuration types below.
Optional cron expression. When set, the preset is only applied according to this schedule.
Optional array of TR-069 event codes. When set, the preset is only applied when one of these events is present in the inform.
Configuration entry types
Each entry in theconfigurations array has a type field that determines its behavior.
value — set a parameter value
| Field | Description |
|---|---|
name | Full TR-069 parameter path. |
value | The value to set on the device. |
provision — run a provision script
| Field | Description |
|---|---|
name | The name of a provision script stored in the provisions collection. |
add_object — add an object instance
| Field | Description |
|---|---|
name | Parent path under which the new instance will be created. |
object | The object name to add. |
delete_object — delete an object instance
| Field | Description |
|---|---|
name | Parent path containing the instance. |
object | The specific instance name to delete. |