## Update URL Normalization settings `url_normalization.update(URLNormalizationUpdateParams**kwargs) -> URLNormalizationUpdateResponse` **put** `/zones/{zone_id}/url_normalization` Updates the URL Normalization settings. ### Parameters - `zone_id: str` The unique ID of the zone. - `scope: Literal["incoming", "both", "none"]` The scope of the URL normalization. - `"incoming"` - `"both"` - `"none"` - `type: Literal["cloudflare", "rfc3986"]` The type of URL normalization performed by Cloudflare. - `"cloudflare"` - `"rfc3986"` ### Returns - `class URLNormalizationUpdateResponse: …` A result. - `scope: Literal["incoming", "both", "none"]` The scope of the URL normalization. - `"incoming"` - `"both"` - `"none"` - `type: Literal["cloudflare", "rfc3986"]` The type of URL normalization performed by Cloudflare. - `"cloudflare"` - `"rfc3986"` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) url_normalization = client.url_normalization.update( zone_id="9f1839b6152d298aca64c4e906b6d074", scope="incoming", type="cloudflare", ) print(url_normalization.scope) ``` #### Response ```json { "errors": [ { "message": "something bad happened", "code": 10000, "source": { "pointer": "/rules/0/action" } } ], "messages": [ { "message": "something bad happened", "code": 10000, "source": { "pointer": "/rules/0/action" } } ], "result": { "scope": "incoming", "type": "cloudflare" }, "success": true } ```