diff --git a/dojo/api_v2/views.py b/dojo/api_v2/views.py index 00a6da1b556..6caea557471 100644 --- a/dojo/api_v2/views.py +++ b/dojo/api_v2/views.py @@ -1689,7 +1689,7 @@ def process_post(self: object, data: dict): def process_patch(self: object, data: dict): product = Product.objects.filter(id=data.get("product")).first() finding = Finding.objects.filter(id=data.get("finding")).first() - endpoint = Finding.objects.filter(id=data.get("endpoint")).first() + endpoint = Endpoint.objects.filter(id=data.get("endpoint")).first() metalist = data.get("metadata") for metadata in metalist: dojometa = DojoMeta.objects.filter(product=product, finding=finding, endpoint=endpoint, name=metadata.get("name"))