config_upload_update
Replaces a BunkerWeb snippet's content from a base64-encoded file, optionally renames it via a new name or the file stem, and saves the update for the scheduler to apply later.
Instructions
Replace one snippet's content from a base64 file; without new_name the file stem renames it. Use config_update for text. Saved to the database; the scheduler applies it later; this tool cannot confirm it is live.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File whose content replaces the snippet's | |
| 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 | |
| new_name | No | New name; if omitted the file stem renames the snippet, so pass the current name to keep it | |
| new_type | No | Change the type; omit to keep | |
| new_service | No | Move to this service; omit to keep | |
| new_is_draft | No | Set the draft flag; omit to keep |