diff --git a/api/v1/routes.go b/api/v1/routes.go index 799b7e4b..1e4a2cb5 100644 --- a/api/v1/routes.go +++ b/api/v1/routes.go @@ -211,6 +211,9 @@ func putVulnerability(w http.ResponseWriter, r *http.Request, p httprouter.Param return putVulnerabilityRoute, http.StatusBadRequest } + vuln.Namespace.Name = p.ByName("namespaceName") + vuln.Name = p.ByName("vulnerabilityName") + err = ctx.Store.InsertVulnerabilities([]database.Vulnerability{vuln}, true) if err != nil { writeResponse(w, http.StatusInternalServerError, VulnerabilityEnvelope{Error: &Error{err.Error()}})