---
title: "Replace"
method: PUT
path: "/edges/tls/{id}/ip_restriction"
tags: ["TLSEdgeIPRestrictionModule"]
---

# Replace

`PUT /edges/tls/{id}/ip_restriction`

## Path parameters

- `id` string, required

## Headers

- `ngrok-version` integer, required

## Request body

- EdgeIPRestrictionReplace
  - `id` string — n/a
  - `module` EndpointIPPolicyMutate
    - `enabled` boolean — `true` if the module will be applied to traffic, `false` to disable. default `true` if unspecified
    - `ip_policy_ids` string[] — list of all IP policies that will be used to check if a source IP is allowed access to the endpoint

## Response `200`

n/a

- EndpointIPPolicy
  - `enabled` boolean — `true` if the module will be applied to traffic, `false` to disable. default `true` if unspecified
  - `ip_policies` Ref[] — list of all IP policies that will be used to check if a source IP is allowed access to the endpoint
    - `id` string — a resource identifier
    - `uri` string — a uri for locating a resource

---

[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)
