API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · product_reviews

Product Review Schema

ID du schéma
product_review
Collection
product_reviews
Autorisations
  • Lireproduct_review_view
  • Créerproduct_review_create
  • Modifierproduct_review_edit
  • Supprimerproduct_review_delete

Champs

Product Review Schema

product_reviews4 autorisations

Customer-submitted product review with rating and free-text comment, displayed on the customer-portal article detail page.

articleIduuidobligatoire

FK to articles._id — the reviewed product.

ratingintegerobligatoire

Star rating 1–5.

1 – 5
titlestringfacultatif

Optional short headline for the review.

max. 200 caractèresPar défaut : nullnullable
textstringfacultatif

Free-text review body (plain text).

max. 4000 caractèresPar défaut : nullnullable
authorPartyIdstringfacultatif

PERSON party of the review author. Set automatically from the user’s linked person on submit.

MotifPar défaut : nulllecture seulenullable
authorNamestringfacultatif

Denormalised display name (first name + initial of surname). Stored at submit time so it stays stable when the user record changes.

max. 200 caractèresPar défaut : nullnullable
authorOrgPartyIdstringfacultatif

Optional ORG party of the author (the customer organisation they belong to).

MotifPar défaut : nulllecture seulenullable
verifiedbooleanfacultatif

true if the author actually placed an order containing this article (set by the backend on submit).

Par défaut : falselecture seule

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/product_reviews — Liste, paginée et filtrable
  • GET /api/v1/product_reviews/<id> — Une entité
  • POST /api/v1/product_reviews — Créer
  • PATCH /api/v1/product_reviews/<id> — Mise à jour partielle
  • DELETE /api/v1/product_reviews/<id> — Suppression logique
  • GET /api/v1/product_reviews/<id>/timeline — Audit et activités

Recherche