Tweak Settings
Tweak Settings¶
View and modify system behavior settings.
phantom-api core update_tweak_setting setting_name="restart_service_after_client_creation" value=false
Parameters for update_tweak_setting:
| Parameter | Required | Description |
|---|---|---|
setting_name |
Yes | Name of the setting to update |
value |
Yes | New value (boolean as string: "true"/"false") |
Available Settings:
| Setting | Default | Description |
|---|---|---|
restart_service_after_client_creation |
false | Restart WireGuard service after adding clients |
Info
When false: Uses wg set command to dynamically add clients (no service restart).
When true: Restarts the entire WireGuard service (causes temporary disconnection for all clients).
Response Model (get): TweakSettingsResponse
Response Model (update): TweakModificationResult
| Field | Type | Description |
|---|---|---|
setting |
string | Setting name |
new_value |
boolean | New value |
old_value |
boolean | Previous value |
message |
string | Result message |
description |
string | Setting description |