allow_patch
Version: v2026-01-09 | 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: PATCH requests require a Content-Length header, even if they don't contain a body, or they result in a 411 Length Required error.
>
> 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:
* allow_delete
* allow_options
* allow_post
* allow_put
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_v2026_01_09 {
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
PATCH requests. Content does not cache.
|
Updated 3 months ago
