code: def create(self, request):
          
  
          variant_id = request.data.get("variant_id", None)
          if variant_id is not None:
              variant = ProductVariant.objects.get(id=variant_id)
              product_request = ProductRequest(variant=variant)
              product_request.save()
              serializer = self.serializer_class(product_request)
              response = Response(data=serializer.data, status=status.HTTP_201_CREATED)
          else:
              response = Response(
                  {"message": "Missing 'variant_id'"},
                  status=status.HTTP_400_BAD_REQUEST)
  
          return response
docs: Create a new product request