                      :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))))))))

             (POST "/evidence/:user-badge-id" []
                   :return {:status (s/enum "success" "error")}
                   :path-params [user-badge-id :- Long]
                   :body-params [id :- (s/maybe s/Int)
                                 name :- (s/maybe s/Str)
                                 narrative :- (s/maybe s/Str)
                                 url :- s/Str
                                 resource_id :- (s/maybe s/Int)
                                 resource_type :- (s/maybe s/Str)]
                   :summary "Save badge evidence"
                   :auth-rules access/authenticated
                   :current-user current-user
                   (ok (b/save-badge-evidence ctx (:id current-user) user-badge-id id name narrative url resource_id resource_type)))

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

                   :current-user current-user
                   (ok (str (b/toggle-show-recipient-name! ctx badgeid show_recipient_name (:id current-user)))))

             (POST "/toggle_evidences_all/:badgeid" []
                   :path-params [badgeid :- Long]
                   :body-params [show_evidence :- (s/enum false true)]
                   :summary "disable or enable all badge evidences"
                   :auth-rules access/authenticated
                   :current-user current-user
                   (ok (str (b/toggle-show-all-evidences! ctx badgeid show_evidence (:id current-user)))))

             (POST "/congratulate/:badgeid" []
                   :return {:status (s/enum "success" "error") :message (s/maybe s/Str)}
