Skip to main content
PUT
/
v1
/
mock-apis
/
{mockApiId}
/
host
Move a mock API to a different mock host
curl --request PUT \
  --url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/host \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "mockHost": "<string>"
}
'
{}

Authorizations

Authorization
string
header
required

Your API key prefixed by 'Token '

Path Parameters

mockApiId
string
required

The ID of the Mock API

Required string length: 5 - 10
Example:

"jjl8y"

Body

application/json
mockHost
string
required

The ID of the mock host to place this mock API on.

Response

200 response

The response is of type object.