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

Customer Org Unit Schema

ID du schéma
customer_org_unit
Collection
customer_org_units
Autorisations
  • Lirecustomer_org_unit_view
  • Créercustomer_org_unit_create
  • Modifiercustomer_org_unit_edit
  • Supprimercustomer_org_unit_delete

Champs

Customer Org Unit Schema

customer_org_units4 autorisations

Organizational unit (department/team/site) inside a customer organization. Lives in the MSP tenant and is anchored to a customer ORGANIZATION party via customerPartyId. Forms a tree via parentUnitId. Used by the customer org chart and as an addressing target for service-catalog approval workflows (CUSTOMER_OU_HEAD DSL).

customerPartyIduuidobligatoire

FK to the customer ORGANIZATION party this OU belongs to.

parentUnitIdstringfacultatif

FK to the parent customer_org_unit (same customerPartyId). null for the root unit. Exactly one root OU per customer is allowed.

MotifPar défaut : nullnullable
namestringobligatoire

Display name, e.g. "IT", "Vertrieb Nord", "Werk Hannover".

1–200 caractères
shortCodestringfacultatif

Optional short code used in compact displays (e.g. "IT", "VTN").

max. 20 caractèresPar défaut : nullnullable
headPersonPartyIdstringfacultatif

PERSON party that heads this OU. Must be linked to customerPartyId via party_relationship. Used by the CUSTOMER_OU_HEAD approver-DSL node.

MotifPar défaut : nullnullable
costCenterstringfacultatif

Free-text cost-center label used by the customer (informational only).

max. 100 caractèresPar défaut : nullnullable
notesstringfacultatif
max. 2000 caractèresPar défaut : nullnullable

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

Recherche