Home > @shopware-pwa/shopware-6-client > addProductReview
# addProductReview() function
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Add a review to specific product by its ID
Signature:
export declare function addProductReview(productId: string, productReviewData: {
title: string;
content: string;
points: number;
}, contextInstance?: ShopwareApiInstance): Promise<void>;
# Parameters
Parameter | Type | Description |
---|---|---|
productId | string | |
productReviewData | { title: string; content: string; points: number; } | |
contextInstance | ShopwareApiInstance |
Returns:
Promise<void>
# Exceptions
ClientApiError