Description
With this method, you can activate or deactivate the HSTS for your SSL.
| Name | Data Type | Status | Description |
| auth-id | Integer | Required | Authentication parameter |
| auth-password | String | Required | Authentication parameter |
| domain-name | String | Required | Domain name for the certificate |
| hsts | Integer | Required | Enter =1 for enable, =0 for disable |
When the authentication of API user is not correct, any API request will fail with the following status and statusDescription:
{"status":"Failed","statusDescription":"Invalid authentication, incorrect auth-id or auth-password."}
When the domain-name has not active FreeSSL:
{"status":"Failed","statusDescription":"Invalid Free SSL."}
Note: These are example errors in JSON format, and these are not the only errors that can be displayed.
URL JSON: https://api.cloudns.net/dns/freessl-set-hsts.json
POST/GET: auth-id=0&auth-password=password&domain-name=example.com&hsts=1
URL XML: https://api.cloudns.net/dns/freessl-set-hsts.xml
POST/GET: auth-id=0&auth-password=password&domain-name=example.com&hsts=1