def update(self, request, pk=None):
        exp = Experiment.objects.get(pk=pk)
        serializer = ExperimentSerializer(exp, data=request.data)
        if serializer.is_valid():
            serializer.save()
        return send_response(request.method, serializer)
Update an experiment for a particular user
dataset/ETHPy150Open CiscoSystems/cognitive/cognitive/app/api/experiments.py/ExperimentViewSet.update