HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Guides

Update Product Review Comment

❗️

Notice

Please contact SHOPLINE Merchant Success team to enable this function.
請向SHOPLINE Merchant Success團隊申請開啟此功能。

Function

To update a product review comment by id.
以id更新某一商品評價。

URL

PUT <<api_domain>>/v1/product_review_comments/:product_review_comment_id

Request Parameters

ParameterTypeDescriptionExample
product_review_comment_id
*Required
StringProduct review comment id
商品評價id
5f6d742ce38809bd9fcc438b
user_nameStringUser name
顧客姓名
"user_name": "Ming"
statusStringStatus
狀態
-
active
hidden
removed
"status": "active"
scoreIntegerScore
評分
"score": 3
commentStringComment
評價
"comment": "Hello"
media_idsArrayArray of media ids
媒體id陣列
"media_ids": ["5ec38fbee388097abf1fbc20"]

Response Fields

Get Product Review Comment

Request Example

{
    "id": "5f6d742ce38809bd9fcc438b",
    "product_id": "5f57251ce38809bde9681c3b",
    "order_id": "5f686623e38809c8ed14b1ea",
    "user_id": "5f602e9c01afcd34f53db613",
    "user_name": "Ming",
    "status": "hidden",
    "score": 1,
    "comment": "Hello",
    "media": [],
    "created_by": "importer",
    "commented_at": "2020-09-25T04:38:04.203+00:00",
    "updated_at": "2020-09-25T04:38:04.203+00:00",
    "created_at": "2020-09-25T04:38:04.203+00:00"
}