apidog_propose_reorganization
Propose endpoint folder reorganization with a dry-run plan, inferring structure from URL paths or custom mappings. Review and confirm before applying.
Instructions
Propose a better folder organization for all endpoints. Returns a DRY-RUN plan showing what would change — nothing is applied yet. The user MUST validate the plan before calling apidog_apply_reorganization.
Strategies:
"path-based": Infer folders from URL paths (e.g. /api/v1/admin/billing/... → Admin/Billing)
"preserve-top-level": Keep existing top-level folders, reorganize sub-levels from URL paths
"flat": Single level based on main resource name
You can also provide customMappings to override specific path prefixes.
ALWAYS present the plan to the user and ask for confirmation before applying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxDepth | No | Maximum folder depth | |
| strategy | No | Organization strategy | path-based |
| customMappings | No | Manual overrides: { "/api/v1/admin": "Administration", "/auth": "Authentication" } | |
| groupByVersion | No | Group by API version (v1/, v2/) | |
| stripApiPrefix | No | Remove /api prefix from folder names |