From b484950da7bb82758b0c9393fd6f8875830c1ed0 Mon Sep 17 00:00:00 2001 From: lullah Date: Fri, 5 Jun 2026 13:53:53 +0100 Subject: [PATCH] accept json body for FILE/reprocess #392 --- stixify/web/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stixify/web/views.py b/stixify/web/views.py index bf64267..b001272 100644 --- a/stixify/web/views.py +++ b/stixify/web/views.py @@ -451,7 +451,7 @@ def similar_files(self, request, file_id=None): similar_files = obj.similar_posts(visible_to=visible_to) return Response(SimilarFileSerializer(similar_files, many=True).data) - @decorators.action(methods=["PATCH"], detail=True) + @decorators.action(methods=["PATCH"], detail=True, parser_classes=[parsers.JSONParser]) def reprocess(self, request, file_id=None, **kwargs): file_obj = self.get_object() s = ReprocessSingleFileSerializer(data=request.data)