import_endpoint
Add or update one API endpoint by wrapping it in a minimal OpenAPI 3.1 spec and importing it, so you avoid maintaining a full specification.
Instructions
Import a single API endpoint by wrapping it into a minimal OpenAPI 3.1 spec and importing it. Convenient for adding or updating one endpoint at a time without providing a full spec.
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": {
"method": "<method>",
"path": "<path>"
},
"name": "import_endpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Endpoint path (e.g., /api/v1/users/{id}) | |
| tags | No | Tags — note: tags become sub-folders in Apidog. Omit to land directly in targetEndpointFolderId. | |
| method | Yes | HTTP method | |
| summary | No | Short summary | |
| responses | No | OpenAPI responses object (defaults to {"200": {"description": "OK"}}) | |
| parameters | No | OpenAPI parameter objects | |
| description | No | Detailed description | |
| requestBody | No | OpenAPI requestBody object | |
| overwriteBehavior | No | How to handle an existing endpoint with the same path/method (default: OVERWRITE_EXISTING) | |
| targetEndpointFolderId | No | Folder ID where the endpoint will be placed |