MCPcopy Index your code
hub / github.com/Dispatcharr/Dispatcharr / update

Method update

core/api_views.py:251–262  ·  view source on GitHub ↗

Update proxy settings

(self, request, pk=None)

Source from the content-addressed store, hash-verified

249 return Response(settings_data)
250
251 def update(self, request, pk=None):
252 """Update proxy settings"""
253 settings_obj, current_data = self._get_or_create_settings()
254
255 serializer = ProxySettingsSerializer(data=request.data)
256 serializer.is_valid(raise_exception=True)
257
258 # Update the JSON data - store as dict directly
259 settings_obj.value = serializer.validated_data
260 settings_obj.save()
261
262 return Response(serializer.validated_data)
263
264 def partial_update(self, request, pk=None):
265 """Partially update proxy settings"""

Callers

nothing calls this directly

Calls 3

saveMethod · 0.45

Tested by

no test coverage detected