---
title: "Move a mock API to a different mock host"
method: PUT
path: "/v1/mock-apis/{mockApiId}/host"
tags: ["Mock APIs"]
---

# Move a mock API to a different mock host

`PUT /v1/mock-apis/{mockApiId}/host`

## Request body

- object
  - `mockHost` string, required — The ID of the mock host to place this mock API on.

## Response `200`

200 response

- object

## Other responses

- `403` — 403 Unauthorized response
- `422` — 422 Bad Entity response

---

[API](https://skmtc.net/wiremock/apis/wiremock-cloud.md) · [All operations](https://skmtc.net/wiremock/apis/wiremock-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wiremock/wiremock-cloud/revisions/93bebefc672f/schema)
