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

Method update

apps/channels/api_views.py:2645–2653  ·  view source on GitHub ↗

Update an existing logo

(self, request, *args, **kwargs)

Source from the content-addressed store, hash-verified

2643 return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
2644
2645 def update(self, request, *args, **kwargs):
2646 """Update an existing logo"""
2647 partial = kwargs.pop('partial', False)
2648 instance = self.get_object()
2649 serializer = self.get_serializer(instance, data=request.data, partial=partial)
2650 if serializer.is_valid():
2651 logo = serializer.save()
2652 return Response(self.get_serializer(logo).data)
2653 return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
2654
2655 def destroy(self, request, *args, **kwargs):
2656 """Delete a logo and remove it from any channels using it"""

Callers 15

run_recordingFunction · 0.45
_wsFunction · 0.45
build_reserved_setFunction · 0.45
updateMethod · 0.45
edit_bulkMethod · 0.45
assignMethod · 0.45
reorderMethod · 0.45
deleteMethod · 0.45

Calls 1

saveMethod · 0.45

Tested by 4

hsetMethod · 0.36
_set_epg_settingsMethod · 0.36
_make_recordingFunction · 0.36