def update(self, request, pk=None):
        user = User.objects.get(pk=pk)
        serializer = UserSerializer(user, data=request.data)
        if serializer.is_valid():
            serializer.save()
        return send_response(request.method, serializer)
Update all users in the system
dataset/ETHPy150Open CiscoSystems/cognitive/cognitive/app/api/users.py/UserViewSet.update