---
title: Update Managed Transforms
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api)

[Managed Transforms](https://developers.cloudflare.com/api/resources/managed_transforms)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Update Managed Transforms

PATCH/zones/{zone\_id}/managed\_headers

Updates the status of one or more Managed Transforms.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`Response Compression Write``Config Settings Write``Dynamic URL Redirects Write``Cache Settings Write``Custom Errors Write``Origin Write``Managed headers Write``Zone Transform Rules Write``Mass URL Redirects Write``Magic Firewall Write``L4 DDoS Managed Ruleset Write``HTTP DDoS Managed Ruleset Write``Sanitize Write``Transform Rules Write``Select Configuration Write``Bot Management Write``Zone WAF Write``Account WAF Write``Account Rulesets Write``Logs Write``Logs Write`

##### P ath ParametersExpand Collapse

zone\_id: string

The unique ID of the zone.

[Link to this property](<#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20zone_id%20%3E%20(schema)>)

##### Body ParametersJSONExpand Collapse

<details>

<summary>

managed\_request\_headers: optional array of object {id, enabled, has\_conflict, conflicts\_with }

The list of Managed Request Transforms.

</summary>

id: string

The human-readable identifier of the Managed Transform.

minLength1

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(params)%200%20%3E%20(param)%20managed_request_headers%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

enabled: boolean

Whether the Managed Transform is enabled.

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(params)%200%20%3E%20(param)%20managed_request_headers%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20enabled">Link to this property</a>

has\_conflict: boolean

Whether the Managed Transform conflicts with the currently-enabled Managed Transforms.

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(params)%200%20%3E%20(param)%20managed_request_headers%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20has_conflict">Link to this property</a>

conflicts\_with: optional array of string

The Managed Transforms that this Managed Transform conflicts with.

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(params)%200%20%3E%20(param)%20managed_request_headers%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20conflicts_with">Link to this property</a>

</details>

[Link to this property](<#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(params)%200%20%3E%20(param)%20managed_request_headers%20%3E%20(schema)>)

<details>

<summary>

managed\_response\_headers: optional array of object {id, enabled, has\_conflict, conflicts\_with }

The list of Managed Response Transforms.

</summary>

id: string

The human-readable identifier of the Managed Transform.

minLength1

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(params)%200%20%3E%20(param)%20managed_response_headers%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

enabled: boolean

Whether the Managed Transform is enabled.

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(params)%200%20%3E%20(param)%20managed_response_headers%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20enabled">Link to this property</a>

has\_conflict: boolean

Whether the Managed Transform conflicts with the currently-enabled Managed Transforms.

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(params)%200%20%3E%20(param)%20managed_response_headers%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20has_conflict">Link to this property</a>

conflicts\_with: optional array of string

The Managed Transforms that this Managed Transform conflicts with.

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(params)%200%20%3E%20(param)%20managed_response_headers%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20conflicts_with">Link to this property</a>

</details>

[Link to this property](<#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(params)%200%20%3E%20(param)%20managed_response_headers%20%3E%20(schema)>)

##### ReturnsExpand Collapse

<details>

<summary>

errors: array of object {message, code, source }

A list of error messages.

</summary>

message: string

A text description of this message.

minLength1

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

code: optional number

A unique code for this message.

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

<details>

<summary>

source: optional object {pointer }

The source of this message.

</summary>

pointer: string

A JSON pointer to the field that is the source of the message.

minLength1

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

[Link to this property](<#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20errors>)

<details>

<summary>

messages: array of object {message, code, source }

A list of warning messages.

</summary>

message: string

A text description of this message.

minLength1

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

code: optional number

A unique code for this message.

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

<details>

<summary>

source: optional object {pointer }

The source of this message.

</summary>

pointer: string

A JSON pointer to the field that is the source of the message.

minLength1

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

[Link to this property](<#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20messages>)

<details>

<summary>

result: object {managed\_request\_headers, managed\_response\_headers }

A result.

</summary>

<details>

<summary>

managed\_request\_headers: array of object {id, enabled, has\_conflict, conflicts\_with }

The list of Managed Request Transforms.

</summary>

id: string

The human-readable identifier of the Managed Transform.

minLength1

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20managed_transforms%20%3E%20(model)%20managed_transform_edit_response%20%3E%20(schema)%20%3E%20(property)%20managed_request_headers%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

enabled: boolean

Whether the Managed Transform is enabled.

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20managed_transforms%20%3E%20(model)%20managed_transform_edit_response%20%3E%20(schema)%20%3E%20(property)%20managed_request_headers%20%3E%20(items)%20%3E%20(property)%20enabled">Link to this property</a>

has\_conflict: boolean

Whether the Managed Transform conflicts with the currently-enabled Managed Transforms.

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20managed_transforms%20%3E%20(model)%20managed_transform_edit_response%20%3E%20(schema)%20%3E%20(property)%20managed_request_headers%20%3E%20(items)%20%3E%20(property)%20has_conflict">Link to this property</a>

conflicts\_with: optional array of string

The Managed Transforms that this Managed Transform conflicts with.

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20managed_transforms%20%3E%20(model)%20managed_transform_edit_response%20%3E%20(schema)%20%3E%20(property)%20managed_request_headers%20%3E%20(items)%20%3E%20(property)%20conflicts_with">Link to this property</a>

</details>

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20managed_transforms%20%3E%20(model)%20managed_transform_edit_response%20%3E%20(schema)%20%3E%20(property)%20managed_request_headers">Link to this property</a>

<details>

<summary>

managed\_response\_headers: array of object {id, enabled, has\_conflict, conflicts\_with }

The list of Managed Response Transforms.

</summary>

id: string

The human-readable identifier of the Managed Transform.

minLength1

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20managed_transforms%20%3E%20(model)%20managed_transform_edit_response%20%3E%20(schema)%20%3E%20(property)%20managed_response_headers%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

enabled: boolean

Whether the Managed Transform is enabled.

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20managed_transforms%20%3E%20(model)%20managed_transform_edit_response%20%3E%20(schema)%20%3E%20(property)%20managed_response_headers%20%3E%20(items)%20%3E%20(property)%20enabled">Link to this property</a>

has\_conflict: boolean

Whether the Managed Transform conflicts with the currently-enabled Managed Transforms.

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20managed_transforms%20%3E%20(model)%20managed_transform_edit_response%20%3E%20(schema)%20%3E%20(property)%20managed_response_headers%20%3E%20(items)%20%3E%20(property)%20has_conflict">Link to this property</a>

conflicts\_with: optional array of string

The Managed Transforms that this Managed Transform conflicts with.

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20managed_transforms%20%3E%20(model)%20managed_transform_edit_response%20%3E%20(schema)%20%3E%20(property)%20managed_response_headers%20%3E%20(items)%20%3E%20(property)%20conflicts_with">Link to this property</a>

</details>

<a href="#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20managed_transforms%20%3E%20(model)%20managed_transform_edit_response%20%3E%20(schema)%20%3E%20(property)%20managed_response_headers">Link to this property</a>

</details>

[Link to this property](<#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20result>)

success: true

Whether the API call was successful.

[Link to this property](<#(resource)%20managed_transforms%20%3E%20(method)%20edit%20%3E%20(network%20schema)%20%3E%20(property)%20success>)

### Update Managed Transforms

HTTP

HTTPTypeScriptPythonGoTerraform

```
curl https://api.cloudflare.com/client/v4/zones/$ZONE_ID/managed_headers \
    -X PATCH \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
    -d '{}'
```

200 example

```
{
  "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": {
    "managed_request_headers": [
      {
        "id": "add_bot_protection_headers",
        "enabled": true,
        "has_conflict": false,
        "conflicts_with": [
          "add_true_client_ip_headers"
        ]
      }
    ],
    "managed_response_headers": [
      {
        "id": "add_security_headers",
        "enabled": true,
        "has_conflict": false,
        "conflicts_with": [
          "add_true_client_ip_headers"
        ]
      }
    ]
  },
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "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": {
    "managed_request_headers": [
      {
        "id": "add_bot_protection_headers",
        "enabled": true,
        "has_conflict": false,
        "conflicts_with": [
          "add_true_client_ip_headers"
        ]
      }
    ],
    "managed_response_headers": [
      {
        "id": "add_security_headers",
        "enabled": true,
        "has_conflict": false,
        "conflicts_with": [
          "add_true_client_ip_headers"
        ]
      }
    ]
  },
  "success": true
}
```