Update a mock server
updateMockUpdate a mock server's name, environment, privacy, or default response by providing its ID and the fields to change.
Instructions
Updates a mock server.
Resource: Mock server entity associated with a collection UID.
Use this to change name, environment, privacy, or default server response.
To activate a server response, set `config.serverResponseId` to the server response's `id`. Pass `null` to deactivate.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mockId": "<mockId>"
},
"name": "updateMock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mock | No | The mock server fields to update. | |
| mockId | Yes | The mock's ID. |