site_ssl_update
Attach, replace, or detach an SSL certificate on a site. Configure HTTPS redirect, HSTS, and enable HTTP/2 or HTTP/3.
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.
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. |