From 26fc3bac0d0f5c2f7e108f8d12feaacda11adb43 Mon Sep 17 00:00:00 2001 From: Dotta Date: Tue, 14 Jul 2026 17:36:17 +0000 Subject: [PATCH] docs(api): document attachment archive route Co-Authored-By: Paperclip --- server/src/routes/openapi.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/server/src/routes/openapi.ts b/server/src/routes/openapi.ts index 01cb4f05b0a..86afbfa9574 100644 --- a/server/src/routes/openapi.ts +++ b/server/src/routes/openapi.ts @@ -2655,6 +2655,20 @@ registry.registerPath({ responses: { 200: r.ok(), 401: r.unauthorized }, }); +registry.registerPath({ + method: "get", + path: "/api/issues/{id}/attachments/archive", + tags: ["assets"], + summary: "Download issue attachments and documents as a ZIP archive", + request: { params: z.object({ id: z.string() }) }, + responses: { + 200: { description: "ZIP archive content" }, + 401: r.unauthorized, + 404: r.notFound, + 422: r.unprocessable, + }, +}); + registry.registerPath({ method: "get", path: "/api/companies/{companyId}/labels",