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

Product Category Schema

ID du schéma
product_category
Collection
product_categories
Autorisations
  • Lireproduct_category_view
  • Créerproduct_category_create
  • Modifierproduct_category_edit
  • Supprimerproduct_category_delete

Champs

Product Category Schema

product_categories4 autorisations

Schema for validating product category entities

namestringobligatoire

Category name

1–200 caractères
descriptionstringfacultatif

Category description

max. 1000 caractèresnullable
parentCategoryIduuidfacultatif

Parent category UUID for hierarchical nesting

nullable
iconstringfacultatif

MUI icon name

max. 100 caractèresnullable
colorstringfacultatif

Hex color code

Motifnullable
sortOrderintegerfacultatif

Display sort order

≥ 0Par défaut : 0
isActivebooleanfacultatif

Whether this category is active

Par défaut : true

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_categories — Liste, paginée et filtrable
  • GET /api/v1/product_categories/<id> — Une entité
  • POST /api/v1/product_categories — Créer
  • PATCH /api/v1/product_categories/<id> — Mise à jour partielle
  • DELETE /api/v1/product_categories/<id> — Suppression logique
  • GET /api/v1/product_categories/<id>/timeline — Audit et activités

Recherche