Skip to main content
PUT
/
v1
/
hosts
/
{mockHostId}
Update a mock host
curl --request PUT \
  --url https://wmc.wiremockapi.cloud/v1/hosts/{mockHostId} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "mockHost": {
    "role": "DEFAULT"
  }
}
'
{
  "mockHost": {
    "id": "<string>",
    "name": "<string>",
    "links": {
      "self": "<string>"
    },
    "friendlyHostname": "<string>",
    "role": "DEFAULT"
  }
}

Authorizations

Authorization
string
header
required

Your API key prefixed by 'Token '

Path Parameters

mockHostId
string
required

The ID of the mock host

Body

application/json
mockHost
object
required

Response

200 - application/json

Success

mockHost
object
required