apidog_upsert_endpoint
Create or update an API endpoint operation in Apidog by exporting, modifying, validating, and importing the OpenAPI definition.
Instructions
Create or update an endpoint operation by export-modify-validate-import.
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": {
"path": "<path>",
"method": "<method>",
"operation": "<operation>"
},
"name": "apidog_upsert_endpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| method | Yes | ||
| options | No | ||
| branchId | No | Optional Apidog branch ID. Falls back to apidog.json. | |
| moduleId | No | ||
| operation | Yes | OpenAPI operation object. A default 200 response is added if responses is omitted. | |
| projectId | No | Apidog project ID. Falls back to apidog.json. | |
| oasVersion | No | 3.1 | |
| exportFormat | No | JSON | |
| environmentIds | No | ||
| addFoldersToTags | No | ||
| includeApidogExtensionProperties | No |