Skip to main content

Config API

Manage agent configuration with automatic versioned backups. The system keeps the last 10 configuration backups and allows restoring to any previous version.

Get current configuration

Returns the current agent configuration and a list of available backups.

Response

Save configuration

Saves a new configuration. The current configuration is automatically backed up before the new one is applied. The system retains the 10 most recent backups.

Request body

Response

Errors

Restore a backup

Restores a previous configuration from a backup. The current configuration is automatically backed up before the restore is applied.

Request body

Response

Errors

Example: save and restore