API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · product_reviews

Product Review Schema

ID del esquema
product_review
Colección
product_reviews
Permisos
  • Leerproduct_review_view
  • Crearproduct_review_create
  • Modificarproduct_review_edit
  • Eliminarproduct_review_delete

Campos

Product Review Schema

product_reviews4 permisos

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

articleIduuidobligatorio

FK to articles._id — the reviewed product.

ratingintegerobligatorio

Star rating 1–5.

1 – 5
titlestringopcional

Optional short headline for the review.

máx. 200 caracteresValor por defecto: nulladmite null
textstringopcional

Free-text review body (plain text).

máx. 4000 caracteresValor por defecto: nulladmite null
authorPartyIdstringopcional

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

PatrónValor por defecto: nullsolo lecturaadmite null
authorNamestringopcional

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

máx. 200 caracteresValor por defecto: nulladmite null
authorOrgPartyIdstringopcional

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

PatrónValor por defecto: nullsolo lecturaadmite null
verifiedbooleanopcional

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

Valor por defecto: falsesolo lectura

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/product_reviews — Lista, paginada y filtrable
  • GET /api/v1/product_reviews/<id> — Una entidad
  • POST /api/v1/product_reviews — Crear
  • PATCH /api/v1/product_reviews/<id> — Actualización parcial
  • DELETE /api/v1/product_reviews/<id> — Eliminación lógica
  • GET /api/v1/product_reviews/<id>/timeline — Auditoría y actividades

Búsqueda