import_schema
Import a single JSON Schema into Apidog by wrapping it in a minimal OpenAPI spec, with options to overwrite, merge, keep, or create new schemas and place them in a target folder.
Instructions
Import a single data model/schema by wrapping it into a minimal OpenAPI spec and importing it.
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": {
"name": "<name>",
"schema": "<schema>"
},
"name": "import_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Schema name (e.g., UserResponse) | |
| schema | Yes | JSON Schema definition object | |
| overwriteBehavior | No | How to handle an existing schema with the same name (default: OVERWRITE_EXISTING) | |
| targetSchemaFolderId | No | Folder ID where the schema will be placed |