---
title: "Update a mock host"
method: PUT
path: "/v1/hosts/{mockHostId}"
tags: ["Mock Hosts"]
---

# Update a mock host

`PUT /v1/hosts/{mockHostId}`

## Request body

- object
  - `mockHost` object, required
    - `role` 'DEFAULT' | 'SPECIFIC', required — If DEFAULT, new Mock APIs will be automatically assigned to this host if it has fewer than any other host with role DEFAULT

## Response `200`

Success

- object
  - `mockHost` MockHostData, required
    - `id` string, required — The ID of the mock host.
    - `name` string, nullable, required — A human-readable name for the mock host.
    - `friendlyHostname` string — A domain that addresses the mock host.
    - `role` 'DEFAULT' | 'SPECIFIC' — If DEFAULT, new Mock APIs will be automatically assigned to this host if it has fewer than any other host with role DEFAULT
    - `links` object, required
      - `self` string

---

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