ISPConfig 3.3.1p1 — NGINX — Debian 13 Stable Hello, I'm encountering an issue whereby I'm unable to change the "Web server config" Directive Snippet from the API If I do it manually in the Control Panel, then ('directive_snippets_id' => '0') changes to ('directive_snippets_id' => '1') when I query the API. When I try to set it using the API I get the following: ==================== REQUEST: sites_web_domain_update ==================== URL: https://127.0.0.1:8000/remote/json.php?sites_web_domain_update Payload: { "session_id": "REDACTED", "client_id": 1, "primary_id": 1, "params": { "directive_snippets_id": 1 } } ==================== DECODED RESPONSE: sites_web_domain_update ==================== array ( 'code' => 'ok', 'message' => '', 'response' => 0, ) It does not change, I tested with all Functions permissions enabled for the API/Remote user. Any ideas? Thanks!
Try to set all parameters. The update functions in the API always require you to send all parameters and not just one that you want to change. Get the full record using the get function, change the parameter, and pass the full record back.