update_api_test
Replace the entire configuration of an existing API test (identified by apiTestId) with the supplied values — a full overwrite, not a partial patch, so pass every field you want to keep. Same parameters as create_api_test. Returns the updated API test and its state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable name for the API test | |
| type | Yes | API test type: 'HTTP' or 'MCP' | |
| mcpUrl | No | MCP only: the MCP server URL to probe | |
| enabled | Yes | Whether the API test is enabled (scheduled) or paused | |
| httpUrl | No | HTTP only: the http(s) URL to probe | |
| mcpTier | No | MCP only: assertion tier — HANDSHAKE, TOOLS_LIST or TOOL_CALL | |
| retries | Yes | Retries per run before recording a failure (0-5) | |
| httpBody | No | HTTP only: request body | |
| toolName | No | MCP TOOL_CALL tier: name of the tool to invoke | |
| apiTestId | Yes | Id of the API test to update (from list_api_tests or get_api_test) | |
| httpMethod | No | HTTP only: request method — GET, POST, PUT, PATCH, DELETE or HEAD | |
| httpHeaders | No | HTTP only: request headers, as a name->value map | |
| expectedTools | No | MCP TOOLS_LIST tier: tool names the server must advertise | |
| statusPattern | No | HTTP only: status matcher — '200', '2xx' or '20x' | |
| headerMatchers | No | HTTP only: response headers that must match, as a name->value map | |
| timeoutSeconds | Yes | Per-run timeout in seconds; positive and not exceeding intervalSeconds | |
| intervalSeconds | Yes | How often to run the API test, in seconds (minimum 30) | |
| mcpCredentialId | No | MCP only: id of a stored credential | |
| failureThreshold | Yes | Consecutive failing runs before the API test flips to DOWN (1-10) | |
| httpCredentialId | No | HTTP only: id of a stored credential; omit for unauthenticated | |
| maxLatencyMillis | No | HTTP only: fail if slower than this many milliseconds | |
| toolArgumentsJson | No | MCP TOOL_CALL tier: JSON object of tool arguments | |
| bodyValidationTier | No | HTTP only: body validation tier — NONE, VALID_JSON, JSON_SHAPE or EXACT_MATCH | |
| mcpMaxLatencyMillis | No | MCP only: fail if slower than this many milliseconds | |
| bodyValidationSample | No | HTTP only: sample body for JSON_SHAPE/EXACT_MATCH tiers | |
| mcpResultValidationTier | No | MCP TOOL_CALL tier: result validation tier | |
| mcpResultValidationSample | No | MCP TOOL_CALL tier: sample result for JSON_SHAPE/EXACT_MATCH |