---
title: "UpdateVirtualHostMapping"
method: PUT
path: "/v1/vhost/mapping/"
tags: ["vhosts"]
---

# UpdateVirtualHostMapping

`PUT /v1/vhost/mapping/`

Update a vhost mapping.

## Request body

- DtoUpdateMapping
  - `id` integer
  - `mappingSecurityRuleId` integer
  - `matchPattern` 'begins-with' | 'contains' | 'equals' | 'ends-with'
  - `path` string
  - `shouldUpgradeInsecureRequests` boolean
  - `targetHttpResponseCode` integer
  - `targetType` 'url' | 'service' | 'response-code' | 'inline-html' | 'static-files'
  - `targetValue` string

## Response `200`

MappingUpdated

- object

---

[API](https://skmtc.net/goinfinite/apis/osapi.md) · [All operations](https://skmtc.net/goinfinite/apis/osapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/goinfinite/osapi/versions/7320a5d8ef9e/schema)
