Search + K

Command Palette

Search for a command to run...

Sign In

Change Origin Max HTTP Version Setting

PATCH /zones/{zone_id}/settings/origin_max_http_version
Copy endpoint
https://api.cloudflare.com/client/v4

Origin Max HTTP Setting Version sets the highest HTTP version Cloudflare will attempt to use with your origin. This setting allows Cloudflare to make HTTP/2 requests to your origin. (Refer to Enable HTTP/2 to Origin, for more information.). The default value is "2" for all plan types except Enterprise where it is "1".

Parameters

path Path Parameters

Name Type
zone_id required
type CacheRulesIdentifier = string

Request Body

application/json required
{ value: CacheRulesOriginMaxHttpVersionValue

Value of the Origin Max HTTP Version Setting.

type CacheRulesOriginMaxHttpVersionValue = "2" | "1"
; }

Responses

200 application/json

Change Origin Max HTTP Version setting response.

never

Client Errors

4XX application/json

Change Origin Max HTTP Version response failure.

interface CacheRulesApiResponseCommonFailure {
errors: never;
messages: never;
result: null;
success: false;
}