MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / post

Method post

apps/plugins/api_views.py:467–475  ·  view source on GitHub ↗
(self, request, key)

Source from the content-addressed store, hash-verified

465
466class PluginSettingsAPIView(PluginAuthMixin, APIView):
467 def post(self, request, key):
468 pm = PluginManager.get()
469 data = request.data or {}
470 settings = data.get("settings", {})
471 try:
472 updated = pm.update_settings(key, settings)
473 return Response({"success": True, "settings": updated})
474 except Exception as e:
475 return Response({"success": False, "error": str(e)}, status=status.HTTP_400_BAD_REQUEST)
476
477
478class PluginRunAPIView(PluginAuthMixin, APIView):

Callers

nothing calls this directly

Calls 2

update_settingsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected