Toggle HTTPS redirect
hosting_toggleHTTPSRedirectV1Enable or disable HTTP to HTTPS redirect for a domain. Turning on requires an installed SSL certificate; turning off always works.
Instructions
Turns the HTTP to HTTPS redirect of the website on or off, based on is_enabled. Does
nothing when the redirect is already in the requested state. Turning it on requires an
installed certificate (status active or expired on Get SSL status) and returns 422
when there is none; turning it off is always accepted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name | |
| username | Yes | username parameter | |
| is_enabled | Yes | Turn the HTTP to HTTPS redirect on (true) or off (false) for the website. |