update_config
Edit, rename, or move a BunkerWeb config snippet by updating only supplied fields; changes save to the database for scheduler application, not immediate deployment.
Instructions
Edit, rename or move a snippet from text; omitted fields keep their value. UI/API-managed or template-derived only; templates cannot be renamed. A no-op is rejected. Use update_config_from_file for files. Saved to the database; the scheduler applies it later; this tool cannot confirm it is live.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | New snippet content; omit to keep | |
| name | Yes | Snippet name: letters, digits, _ or -, no extension | |
| type | Yes | Custom config type, e.g. http, server-http, default-server-http, stream, server-stream, modsec, modsec-crs, crs-plugins-before, crs-plugins-after | |
| service | No | Service ID that owns the snippet; omit or 'global' for global | |
| is_draft | No | Set the draft flag; omit to keep | |
| new_name | No | Rename the snippet; omit to keep | |
| new_type | No | Change the type; omit to keep | |
| new_service | No | Move to this service; omit to keep |