diff --git a/src/app/(main)/api/qrs/[id]/route.ts b/src/app/(main)/api/qrs/[id]/route.ts index a5bef49..fcd8260 100644 --- a/src/app/(main)/api/qrs/[id]/route.ts +++ b/src/app/(main)/api/qrs/[id]/route.ts @@ -11,6 +11,10 @@ const updateQRSchema = z.object({ content: z.any().optional(), tags: z.array(z.string()).optional(), style: z.any().optional(), + // Pausing frees a dynamic code slot without deleting the code or its scan + // history. Used by the upgrade modal so hitting the limit has an exit that + // costs nothing and destroys nothing. + status: z.enum(['ACTIVE', 'PAUSED']).optional(), }); // GET /api/qrs/[id] - Get a single QR code