| [ Web Proxy ] |
| Viewing: https://developers.cloudflare.com/api/resources/ssl/subresources/automatic_upgrader/methods/patch | [Back] [Original] |
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.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYYThe previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
X-Auth-Email: user@example.comThe previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194Zone Settings WriteSSL and Certificates Writecurl 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
}{
"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
}| Web Proxy Viewer | New URL | Original Page |