update_product_review
Update a product review's content, status, or rating. Changes take effect immediately, and the product's average rating updates to reflect new rating.
Instructions
[WRITE] 更新單筆商品評論。
【用途】 修改評論內容、審核狀態、評分等資料,適用於客服審核或編輯不當評論。
【呼叫的 Shopline API】
PATCH /v1/product_review_comments/{comment_id}
【回傳結構】 dict 含 success: bool, resource_id: str, message: str。
【副作用】
評論資料變更立即生效
若變更評分,商品平均評分將同步更新
不可復原,但可再次呼叫此工具覆蓋
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"comment_id": "<comment_id>",
"review_data": "<review_data>"
},
"name": "update_product_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment_id | Yes | 評論 ID | |
| review_data | Yes | 要更新的評論欄位,例如 {"status": "published", "content": "修改後的評論"} |