* Dashboard

  1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/), and select your account and website.

  2. Go to **Rules** > **Settings**.

  3. In the **Managed Transforms** tab, enable or disable the [desired Managed Transforms](https://developers.cloudflare.com/rules/transform/managed-transforms/reference/) by selecting the toggle next to each entry. Some Managed Transforms may not be available in your Cloudflare plan or product subscriptions.

* API

  **1. Get list of available Managed Transforms**

  Check the Managed Transform's current status and availability using the [List Managed Transforms](https://developers.cloudflare.com/api/resources/managed_transforms/methods/list/) operation.

  The following example request obtains a list of available Managed Transforms, organized by request or response, with information about their current status (`enabled` field) and if you can update them, based on conflicts with other enabled Managed Transforms (`has_conflict` field).

  Each Managed Transform item will optionally contain a `conflicts_with` array informing you about any Managed Transforms that will conflict with the current Managed Transform when enabled.

  The response will only include available Managed Transforms according to your Cloudflare plan and product subscriptions.

  ```bash
  curl https://api.cloudflare.com/client/v4/zones/$ZONE_ID/managed_headers \
    --request GET \
    --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"
  ```

  ```json
  {
    "result": {
      "managed_request_headers": [
        {
          "enabled": false,
          "has_conflict": false,
          "id": "add_bot_protection_headers"
        },
      ],
      "managed_response_headers": [
        {
          "enabled": false,
          "has_conflict": false,
          "id": "remove_x-powered-by_header"
        },
      ]
    },
    "success": true,
    "errors": [],
    "messages": []
  }
  ```

  **2. Change the status of Managed Transforms**

  Change the status of the [desired Managed Transforms](https://developers.cloudflare.com/rules/transform/managed-transforms/reference/) using the [Update status of Managed Transforms](https://developers.cloudflare.com/api/resources/managed_transforms/methods/edit/) operation.

  Add the Managed Transforms you wish to change to the request body, and update their status in the `enabled` field. You cannot enable a Managed Transform that has a conflict with a currently enabled Managed Transform (that is, an item where `has_conflict` is `true`).

  Make sure you include the Managed Transforms you are updating in the correct JSON object (`managed_request_headers` or `managed_response_headers`).

  The response will include all the available Managed Transforms and their new status after the update.

  ```bash
  curl https://api.cloudflare.com/client/v4/zones/$ZONE_ID/managed_headers \
    --request PATCH \
    --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
    --json '{
      "managed_request_headers": [
          {
              "id": "add_visitor_location_headers",
              "enabled": true
          }
      ],
      "managed_response_headers": [
          {
              "id": "remove_x-powered-by_header",
              "enabled": true
          }
      ]
    }'
  ```

  ```json
  {
    "result": {
      "managed_request_headers": [
        {
          "enabled": true,
          "has_conflict": false,
          "id": "add_visitor_location_headers"
        },
      ],
      "managed_response_headers": [
        {
          "enabled": true,
          "has_conflict": false,
          "id": "remove_x-powered-by_header"
        },
      ]
    },
    "success": true,
    "errors": [],
    "messages": []
  }
  ```

* Terraform

  Note

  Terraform code snippets below refer to the v4 SDK only.

  Use the `cloudflare_managed_headers` Terraform resource to configure Managed Transforms. For example:

  ```tf
  resource "cloudflare_managed_headers" "tf_example" {
    zone_id = "<ZONE_ID>"


    managed_request_headers {
      id      = "add_visitor_location_headers"
      enabled = true
    }


    managed_response_headers {
      id      = "remove_x-powered-by_header"
      enabled = true
    }
  }
  ```

  Make sure you include the Managed Transforms you are updating in the correct object (`managed_request_headers` or `managed_response_headers`).
