Skip to content

Update a Review

Endpoint: https://api.youcan.shop/reviews/{id}

Method: PUT

Required Scopes

  • edit-products-review

URL Parameters

  • id: Review id

Body

Param NameParam TypeDescriptionRequired
ratingsintegerProduct review ratings are between zero and fiveyes
emailstringProduct reviewer's email addressyes
first_namestringProduct reviewer's first nameyes
last_namestringProduct reviewer's last nameno
contentstringProduct reviewer's last nameno
imagesFile[]Product review imagesno

Responses

[200] Review successfully updated

json
{
    "message": "Product review updated successfully",
    "http_code": 200,
    "code": "UPDATED",
    "type": "success",
    "data": null
}

[422] Unprocessable entity

json
{
    "ratings": [
        "The ratings field is required."
    ]
}

[404] Review not found