# create review
curl --location 'https://land.dbiz.com//api/method/building_material.building_material.api.item_feedback.update' \
--header 'Cookie: sid=a0c9a51c8d1fbbec824283115094bdca939bb829345e0005334aa99f; full_name=Ha%20Duy%20Lam; sid=42ab54811fb7eadc8c67a6651c68519c8655e9b3e7b797628dcd0b88; system_user=yes; user_id=lamhd%40gmail.com; user_image=' \
--header 'X-Frappe-Csrf-Token: a22fa53eeaa923f71f2fd879d2863a0985a6f2107f5f7f66d34cd62d' \
--header 'Content-Type: application/json' \
--data-raw '{
    "item_id": "Gạch ốp Signature SIG.P-8806",
    "rating" : 0.5,
    "comment" : "Good job 2",
    "name" : "ITEM-Gạch ốp Signature SIG.P-8806-tiennld6@dbiz.com"
}'


# delete review
curl --location 'https://land.dbiz.com//api/method/building_material.building_material.api.item_feedback.delete' \
--header 'Cookie: sid=a0c9a51c8d1fbbec824283115094bdca939bb829345e0005334aa99f; full_name=Ha%20Duy%20Lam; sid=42ab54811fb7eadc8c67a6651c68519c8655e9b3e7b797628dcd0b88; system_user=yes; user_id=lamhd%40gmail.com; user_image=' \
--header 'X-Frappe-Csrf-Token: a22fa53eeaa923f71f2fd879d2863a0985a6f2107f5f7f66d34cd62d' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name" : "ITEM-Gạch ốp Signature SIG.P-8806-tiennld6@dbiz.com"
}'

#get list review
curl --location 'https://land.dbiz.com//api/method/building_material.building_material.api.item_feedback.get_list' \
--header 'Cookie: sid=a0c9a51c8d1fbbec824283115094bdca939bb829345e0005334aa99f; full_name=Ha%20Duy%20Lam; sid=42ab54811fb7eadc8c67a6651c68519c8655e9b3e7b797628dcd0b88; system_user=yes; user_id=lamhd%40gmail.com; user_image=' \
--header 'X-Frappe-Csrf-Token: a22fa53eeaa923f71f2fd879d2863a0985a6f2107f5f7f66d34cd62d' \
--header 'Content-Type: application/json' \
--data '{
    "limit_page_length" : 10,
    "limit_start" : 0,
    "item_id" : "GIB20 G04"
}'