Home > @shopware-pwa/shopware-6-client > addProductReview

# addProductReview() function

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