manage_preset
Create, update, or delete GenieACS presets to define automatic configuration rules for CPE devices based on precondition filters.
Instructions
Create, update, or delete a GenieACS preset. Presets define automatic configuration rules that are applied to CPE devices matching a precondition filter. Use action="put" to create or overwrite a preset, providing the full JSON body with weight, precondition, and configurations. Use action="delete" to remove a preset by name. A preset body should contain: weight (integer priority), precondition (a stringified MongoDB-style JSON query, e.g. "{"_tags":"office"}"), and configurations (array of objects with type "value", "provision", "add_object", or "delete_object"). Example body: {"weight":0,"precondition":"{"_tags":"test"}","configurations":[{"type":"provision","name":"myScript"}]}. Preset names cannot contain dots. Use genieacs://presets/list to view existing presets before making changes. Limitations: changes take effect on the next CPE inform, not immediately.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | The operation to perform: "put" to create or update a preset, "delete" to remove it. | |
| body | No | The full JSON preset document (required for action="put", ignored for "delete"). Must contain weight, precondition, and configurations fields. | |
| name | Yes | The preset name (used as the identifier in the URL). Cannot contain dots. |