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",