Activate/Deactivate HSTS

Description

With this method, you can activate or deactivate the HSTS for your SSL.


Parameters

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

Return: Array with order status and description.


Errors

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.


Example

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


Last modified: 2026-07-20
We value your privacy! We use cookies to enhance your browsing experience, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies. Cookie Policy.