summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--assets/openapi.json12
-rw-r--r--src/api/routes/read-states/ack-bulk.ts10
2 files changed, 20 insertions, 2 deletions
diff --git a/assets/openapi.json b/assets/openapi.json
index d2953a04..275113ef 100644
--- a/assets/openapi.json
+++ b/assets/openapi.json
@@ -7977,8 +7977,18 @@
                     }
                 },
                 "responses": {
-                    "default": {
+                    "204": {
                         "description": "No description available"
+                    },
+                    "400": {
+                        "description": "",
+                        "content": {
+                            "application/json": {
+                                "schema": {
+                                    "$ref": "#/components/schemas/APIErrorResponse"
+                                }
+                            }
+                        }
                     }
                 },
                 "tags": [
diff --git a/src/api/routes/read-states/ack-bulk.ts b/src/api/routes/read-states/ack-bulk.ts
index bca2001c..3ee25d1a 100644
--- a/src/api/routes/read-states/ack-bulk.ts
+++ b/src/api/routes/read-states/ack-bulk.ts
@@ -23,7 +23,15 @@ const router = Router();
 
 router.post(
 	"/",
-	route({ requestBody: "AckBulkSchema" }),
+	route({
+		requestBody: "AckBulkSchema",
+		responses: {
+			204: {},
+			400: {
+				body: "APIErrorResponse",
+			},
+		},
+	}),
 	async (req: Request, res: Response) => {
 		const body = req.body as AckBulkSchema;