def create(self, request, *args, **kwargs):
        plural_name = self.get_serializer_class().get_plural_name()
        if isinstance(request.data, list):
            return self._create_many(request.data)
        elif plural_name in request.data and len(request.data) == 1:
            return self._create_many(request.data[plural_name])
        return super(DynamicModelViewSet, self).create(
            request, *args, **kwargs)
Either create a single or many model instances in bulk
dataset/ETHPy150Open AltSchool/dynamic-rest/dynamic_rest/viewsets.py/DynamicModelViewSet.create