apidog_import_openapi
Import OpenAPI specs into Apidog modules. Automatically batches large specs to avoid payload limits, supporting file paths or inline JSON.
Instructions
Import an OpenAPI spec into an Apidog module. Auto-batches large specs to avoid payload limits. Accepts a file path or inline JSON.
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": {
"module": "<module>"
},
"name": "apidog_import_openapi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | No | OpenAPI spec as JSON object | |
| module | Yes | Module name | |
| project | No | Project name. Required when multiple projects are configured, optional otherwise. | |
| specPath | No | Path to OpenAPI spec JSON file | |
| batchSize | No | Paths per import batch (default 15) | |
| updateFolders | No | Update folder assignments from x-apidog-folder (default false) | |
| deleteUnmatched | No | Delete endpoints not in the imported spec (default false) | |
| overwriteBehavior | No | How to handle matched endpoints (default OVERWRITE_EXISTING) |