yapi_update_interface
Updates a complete YAPI interface definition, intelligently deciding whether to create a new entry or modify an existing one based on the provided ID and details.
Instructions
更新 YAPI 接口的完整定义(智能判断新增或更新)
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": {
"id": "<id>",
"title": "<title>",
"catid": "<catid>",
"path": "<path>",
"method": "<method>"
},
"name": "yapi_update_interface"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | 接口 ID | |
| desc | No | 接口描述 | |
| path | Yes | 接口路径 | |
| catid | Yes | 接口分类 ID | |
| title | Yes | 接口标题 | |
| method | Yes | 请求方法 | |
| status | No | 接口状态 |