yapi_update_interface
Update an existing YApi API interface by specifying its ID and providing new values for title, path, method, project, category, and other attributes.
Instructions
Update an existing API interface
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>",
"path": "<path>",
"method": "<method>",
"project_id": "<project_id>",
"catid": "<catid>"
},
"name": "yapi_update_interface"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Interface ID to update | |
| desc | No | Interface description | |
| path | Yes | API path/endpoint | |
| catid | Yes | Category ID | |
| title | Yes | Interface title/name | |
| method | Yes | HTTP method | |
| status | No | Interface status | |
| res_body | No | Response body content (JSON schema or example) | |
| project_id | Yes | Project ID | |
| req_body_type | No | Request body type | |
| res_body_type | No | Response body type | |
| req_body_other | No | Request body content (JSON schema or example) |