site_ssl_update
Attach, replace, or detach an SSL certificate on a site and toggle HTTPS settings including HSTS, HTTP/2, and redirects.
Instructions
Attach, replace, or detach an SSL certificate on an existing site, and toggle HTTPS flags. Maps to PUT /api/sites/{site_id}. Use for wildcard flow: create site in *.icstudio.space, then attach an existing wildcard cert. Pass certificate_id=null to detach. WRITE — confirm:true required.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site_id": "<site_id>",
"certificate_id": "<certificate_id>"
},
"name": "site_ssl_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hsts | No | Enable HTTP Strict Transport Security | |
| http2 | No | Enable HTTP/2 | |
| http3 | No | Enable HTTP/3 / QUIC | |
| confirm | No | ||
| dry_run | No | ||
| site_id | Yes | Site id from sites_list | |
| certificate_id | Yes | Existing cert id from certificates_list, or null to detach current cert | |
| https_redirect | No | Force HTTP → HTTPS redirect | |
| manual_changes | No | Preserve manual nginx edits. Usually false when panel manages config. |