---
title: "Replaces a specific gateway"
method: PUT
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/connectionGateways/{connectionGatewayName}"
tags: ["Connection Gateways"]
---

# Replaces a specific gateway

`PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/connectionGateways/{connectionGatewayName}`

Creates or updates a specific gateway for under a subscription and in a specific resource group

## Path parameters

- `subscriptionId` string, required
- `resourceGroupName` string, required
- `connectionGatewayName` string, required

## Query parameters

- `api-version` string, required

## Request body

- ConnectionGatewayDefinition — A resource
  - `id` string — Resource id
  - `name` string — Resource name
  - `type` string — Resource type
  - `location` string — Resource location
  - `etag` string — Resource ETag
  - `tags` TagsDictionary — Resource tags

## Response `200`

The updated gateway definition

- ConnectionGatewayDefinition — A resource
  - `id` string — Resource id
  - `name` string — Resource name
  - `type` string — Resource type
  - `location` string — Resource location
  - `etag` string — Resource ETag
  - `tags` TagsDictionary — Resource tags

## Other responses

- `201` — The newly created gateway definition

---

[API](https://skmtc.net/azure/apis/logicappsmanagementclient.md) · [All operations](https://skmtc.net/azure/apis/logicappsmanagementclient/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/logicappsmanagementclient/versions/7fd8c96d6654/schema)
