'Create/update course modes for a course.'

def update(self, request, *args, **kwargs):

    try:
        try:
            return super(PutAsCreateMixin, self).update(request, *args, **kwargs)
        except Http404:
            return super(PutAsCreateMixin, self).create(request, *args, **kwargs)
    except ValidationError as err:
        return Response(err.messages, status=status.HTTP_400_BAD_REQUEST)
