---
title: "Replace"
method: PUT
path: "/edges/https/{edge_id}/routes/{id}/response_headers"
tags: ["EdgeRouteResponseHeadersModule"]
---

# Replace

`PUT /edges/https/{edge_id}/routes/{id}/response_headers`

## Path parameters

- `edge_id` string, required
- `id` string, required

## Headers

- `ngrok-version` integer, required

## Request body

- EdgeRouteResponseHeadersReplace
  - `edge_id` string — n/a
  - `id` string — n/a
  - `module` EndpointResponseHeaders
    - `enabled` boolean — `true` if the module will be applied to traffic, `false` to disable. default `true` if unspecified
    - `add` object — a map of header key to header value that will be injected into the HTTP Response returned to the HTTP client
    - `remove` string[] — a list of header names that will be removed from the HTTP Response returned to the HTTP client

## Response `200`

n/a

- EndpointResponseHeaders
  - `enabled` boolean — `true` if the module will be applied to traffic, `false` to disable. default `true` if unspecified
  - `add` object — a map of header key to header value that will be injected into the HTTP Response returned to the HTTP client
  - `remove` string[] — a list of header names that will be removed from the HTTP Response returned to the HTTP client

## Other responses

- `4XX` — An error. The body carries a machine-readable error_code and a human-readable msg; every code is documented at https://ngrok.com/docs/errors. A 429 with error code ERR_NGROK_226 means the account exceeded the documented request-rate limit.
- `5XX` — An error. The body carries a machine-readable error_code and a human-readable msg; every code is documented at https://ngrok.com/docs/errors. A 429 with error code ERR_NGROK_226 means the account exceeded the documented request-rate limit.

---

[API](https://skmtc.dev/ngrok/apis/ngrok-openapi.md) · [All operations](https://skmtc.dev/ngrok/apis/ngrok-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ngrok/ngrok-openapi/revisions/c697539ac350/schema)
