yapi_save_mock_case
Add or update a mock expectation for an interface by providing response body and optional delay, code, or parameters. Pass caseId to update an existing mock case instead of creating a new one.
Instructions
新增或更新一条 Mock 期望。更新时传 caseId。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | ||
| code | No | ||
| name | Yes | ||
| delay | No | ||
| caseId | No | ||
| dryRun | No | ||
| params | No | ||
| resBody | Yes | ||
| ipEnable | No | ||
| projectId | No | ||
| interfaceId | Yes |