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

Method create

apps/channels/api_views.py:2637–2643  ·  view source on GitHub ↗

Create a new logo entry

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

Source from the content-addressed store, hash-verified

2635 return queryset
2636
2637 def create(self, request, *args, **kwargs):
2638 """Create a new logo entry"""
2639 serializer = self.get_serializer(data=request.data)
2640 if serializer.is_valid():
2641 logo = serializer.save()
2642 return Response(self.get_serializer(logo).data, status=status.HTTP_201_CREATED)
2643 return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
2644
2645 def update(self, request, *args, **kwargs):
2646 """Update an existing logo"""

Callers 15

sync_recurring_rule_implFunction · 0.45
postMethod · 0.45
edit_bulkMethod · 0.45
duplicateMethod · 0.45
patchMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
_progMethod · 0.45
setUpMethod · 0.45

Calls 1

saveMethod · 0.45

Tested by 15

setUpMethod · 0.36
setUpMethod · 0.36
_progMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36