Patch Automatic SSL/TLS Enrollment status for given zone
PATCH/zones/{zone_id}/settings/ssl_automatic_mode
The automatic system is enabled when this endpoint is hit with value in the request body is set to "auto", and disabled when the request body value is set to "custom".
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
Patch Automatic SSL/TLS Enrollment status for given zone
curl https://api.cloudflare.com/client/v4/zones/$ZONE_ID/settings/ssl_automatic_mode \
-X PATCH \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
-d '{
"value": "auto"
}'{
"errors": [],
"messages": [],
"result": {
"editable": true,
"id": "ssl_automatic_mode",
"modified_on": "2014-01-01T05:20:00.12345Z",
"next_scheduled_scan": "2014-02-01T05:20:00.12345Z",
"value": "auto"
},
"success": true
}{
"errors": [
{
"code": 1008,
"message": "Invalid SSL/TLS encryption configuration value, only auto or custom accepted"
}
],
"messages": [],
"result": {
"editable": true,
"id": "ssl_automatic_mode",
"modified_on": "2014-01-01T05:20:00.12345Z",
"value": "custom"
},
"success": false
}Returns Examples
{
"errors": [],
"messages": [],
"result": {
"editable": true,
"id": "ssl_automatic_mode",
"modified_on": "2014-01-01T05:20:00.12345Z",
"next_scheduled_scan": "2014-02-01T05:20:00.12345Z",
"value": "auto"
},
"success": true
}{
"errors": [
{
"code": 1008,
"message": "Invalid SSL/TLS encryption configuration value, only auto or custom accepted"
}
],
"messages": [],
"result": {
"editable": true,
"id": "ssl_automatic_mode",
"modified_on": "2014-01-01T05:20:00.12345Z",
"value": "custom"
},
"success": false
}