From ad69022cad690c7ff1a92db9ec594eacd4d02131 Mon Sep 17 00:00:00 2001 From: Dotta Date: Mon, 5 Oct 2026 09:15:05 -0500 Subject: [PATCH] Document connection pool deletion in OpenAPI Co-Authored-By: Paperclip --- server/src/routes/openapi.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/src/routes/openapi.ts b/server/src/routes/openapi.ts index 88a5ceabacb..77ab6b96431 100644 --- a/server/src/routes/openapi.ts +++ b/server/src/routes/openapi.ts @@ -10391,6 +10391,15 @@ registerCurrentRoute({ responses: { 200: r.ok(), 400: r.badRequest, 401: r.unauthorized, 403: r.forbidden, 404: r.notFound, 409: r.conflict, 422: r.unprocessable }, }); +registerCurrentRoute({ + method: "delete", + path: "/api/companies/{companyId}/ai-connection-pools/{poolId}", + tags: ["ai-connections"], + summary: "Delete a connection pool while retaining task and run records", + body: z.object({ expectedRevision: z.number().int().positive() }).strict(), + responses: { 200: r.ok(z.object({ ok: z.literal(true) })), 400: r.badRequest, 401: r.unauthorized, 403: r.forbidden, 404: r.notFound, 409: r.conflict }, +}); + registerCurrentRoute({ method: "get", path: "/api/companies/{companyId}/ai-connection-pools/{poolId}/inspection",