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

# Replace

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

## Path parameters

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

## Headers

- `ngrok-version` integer, required

## Request body

- EdgeRouteCompressionReplace
  - `edge_id` string — n/a
  - `id` string — n/a
  - `module` EndpointCompression
    - `enabled` boolean — `true` if the module will be applied to traffic, `false` to disable. default `true` if unspecified

## Response `200`

n/a

- EndpointCompression
  - `enabled` boolean — `true` if the module will be applied to traffic, `false` to disable. default `true` if unspecified

---

[API](https://skmtc.net/ngrok/apis/ngrok-openapi.md) · [All operations](https://skmtc.net/ngrok/apis/ngrok-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ngrok/ngrok-openapi/versions/1994bbb04714/schema)
