apidog_upsert_endpoint
Creates or updates an API endpoint in Apidog, preserving the existing spec format and verifying the update.
Instructions
Create or update a single API endpoint. This is the primary write tool.
WORKFLOW (validated in POC):
Exports current spec to preserve existing format
Finds the target endpoint — reports if it exists (UPDATE) or not (CREATE)
Computes a diff showing exactly what changed
Merges the endpoint into the full spec
Imports back to Apidog with OVERWRITE_EXISTING
Verifies the update landed correctly
IMPORTANT: The operation object must match the Apidog OpenAPI format including x-apidog-* extensions. Always call apidog_get_endpoint first on a similar endpoint to learn the exact format used in this project.
The operation must include x-apidog-orders and x-apidog-ignore-properties arrays in schema objects to match the existing format. See existing endpoints for reference.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Endpoint path | |
| method | Yes | ||
| operation | Yes | Full OpenAPI operation object. Must include: summary, description, tags, parameters, requestBody (if applicable), responses, security, x-apidog-folder, x-apidog-status. Match the exact format of existing endpoints. |