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.
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) |