v1
latestSwagger 2.02026-07-13180103150.2 KBsniCertificate
Provisions or updates a TLS certificate for the site.
Creating a certificate (site has no certificate):
- Omit certificate params to initiate Let's Encrypt provisioning
- Provide certificate, key, and ca_certificates to upload a custom certificate
Updating a certificate (site already has a certificate):
- REQUIRES certificate, key, and ca_certificates to replace with a new custom certificate
- Use POST /api/v1/sites/{site_id}/ssl/renew to renew an existing Let's Encrypt certificate
post/sites/{site_id}/ssl
Path parameters
site_idstring required
Query parameters
certificatestring
PEM-encoded certificate. Required when updating an existing certificate.
keystring
PEM-encoded private key. Required when updating an existing certificate.
ca_certificatesstring
PEM-encoded CA certificate chain. Required when updating an existing certificate.
Response
OK