From 0f8687ac3061f4ddaf70f6dadfe5dabfd758b5e8 Mon Sep 17 00:00:00 2001
From: mlbonhomme <bonhomme@teklia.com>
Date: Tue, 12 Mar 2024 19:25:49 +0100
Subject: [PATCH] put set back in destroydatasetelement

---
 arkindex/training/api.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arkindex/training/api.py b/arkindex/training/api.py
index f0b71f16bc..46989ec6d6 100644
--- a/arkindex/training/api.py
+++ b/arkindex/training/api.py
@@ -790,6 +790,14 @@ class DatasetElements(CorpusACLMixin, ListCreateAPIView):
 @extend_schema_view(
     delete=extend_schema(
         operation_id="DestroyDatasetElement",
+        parameters=[
+            OpenApiParameter(
+                "set",
+                type=str,
+                description="Name of the set from which to remove the element.",
+                required=True,
+            )
+        ],
         tags=["datasets"]
     )
 )
-- 
GitLab