apidog_upsert_schema
Create or update a component schema in Apidog, merging it into components/schemas for reuse via $ref from endpoints.
Instructions
Create or update a component schema (data model) in Apidog. The schema is merged into components/schemas. Use $ref to reference from endpoints.
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": "apidog_upsert_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Schema name, e.g. "User", "Invoice" | |
| schema | Yes | JSON Schema object |