| Version: v2023-09-20 | Includes use: Yes | 
|---|
Behavior name: Allow PATCH
Allow HTTP requests using the PATCH method. By default, GET, HEAD, and OPTIONS requests are allowed, and all other methods result in a 501 error. Such content does not cache, and any PATCH requests pass to the origin.
Important:
PATCHrequests require aContent-Lengthheader, even if they don't contain a body, or they result in a411 Length Requirederror.Include the header with requests and set a message body size in bytes. If the request has no body, set the header to
0.
Related behaviors:
Default behavior
These samples reflect the behavior's default settings. You can use these as is in your configurations or make adjustments based on the behavior's available options.
data "akamai_property_rules_builder" "allow_patch" {
  rules_v2023_09_20 {
    name     = "Allow PATCH"
    comments = "Allow HTTP requests using the PATCH method."
    behavior {
      allow_patch {
        enabled    = true
      }
    }
  }
}
"behaviors": [
  {
    "name": "allowPatch",
    "options": {
      "enabled": true
    }
  }
]
Options
| Option | Description | 
|---|---|
| enabled | Allows  PATCHrequests. Content does not cache. | 
