                      :auth-rules access/authenticated
                      :current-user current-user
                      (ok (b/delete-evidence! ctx evidenceid user_badge_id (:id current-user) resource_id resource_type))
-                     ))))
+                     )
+             (POST "/toggle_evidence/:evidenceid" []
+                   ;:return {} ;{:status (s/enum "success" "error")}
+                   :path-params [evidenceid :- Long]
+                   :body-params [show_evidence :- (s/enum false true)
+                                 user_badge_id :- s/Int]
+                   :summary "Set evidence visibility"
+                   :auth-rules access/authenticated
+                   :current-user current-user
+                   (ok (str (b/toggle-show-evidence! ctx user_badge_id evidenceid show_evidence (:id current-user))))))))

                   :return {:status (s/enum "success" "error")}
                   :path-params [badgeid :- Long]
                   :body-params [visibility :- (s/enum "private" "public" "internal")
                                 evidence-url :- (s/maybe s/Str)
                                 rating :- (s/maybe (s/enum 5 10 15 20 25 30 35 40 45 50))
                                 tags :- (s/maybe [s/Str])]
                   :summary "Save badge settings"
                   :auth-rules access/authenticated
                   :current-user current-user
                   (ok (b/save-badge-settings! ctx badgeid (:id current-user) visibility evidence-url rating tags)))

             (POST "/save_raiting/:badgeid" []
                   :return {:status (s/enum "success" "error")}

             (POST "/evidence/:user-badge-id" []
                   :return {:status (s/enum "success" "error")}
                   :path-params [user-badge-id :- Long]
                   :body-params [evidence :- schemas/Evidence]
                   :summary "Save badge evidence"
                   :auth-rules access/authenticated
                   :current-user current-user
                   (prn evidence)
                   (ok (b/save-badge-evidence ctx (:id current-user) user-badge-id evidence)))

             (DELETE "/evidence/:evidenceid" [user_badge_id resource_type resource_id]
                     :return {:status (s/enum "success" "error")}
