API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · customer_org_units

Customer Org Unit Schema

Schema-ID
customer_org_unit
Collection
customer_org_units
Permissions
  • Lezencustomer_org_unit_view
  • Aanmakencustomer_org_unit_create
  • Wijzigencustomer_org_unit_edit
  • Verwijderencustomer_org_unit_delete

Velden

Customer Org Unit Schema

customer_org_units4 permissions

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).

customerPartyIduuidvereist

FK to the customer ORGANIZATION party this OU belongs to.

parentUnitIdstringoptioneel

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

PatternDefault: nullnullable
namestringvereist

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

1–200 tekens
shortCodestringoptioneel

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

max. 20 tekensDefault: nullnullable
headPersonPartyIdstringoptioneel

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

PatternDefault: nullnullable
costCenterstringoptioneel

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

max. 100 tekensDefault: nullnullable
notesstringoptioneel
max. 2000 tekensDefault: nullnullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/customer_org_units — Lijst, gepagineerd + filterbaar
  • GET /api/v1/customer_org_units/<id> — Enkele entity
  • POST /api/v1/customer_org_units — Aanmaken
  • PATCH /api/v1/customer_org_units/<id> — Gedeeltelijke update
  • DELETE /api/v1/customer_org_units/<id> — Soft-delete
  • GET /api/v1/customer_org_units/<id>/timeline — Audit + activiteiten

Zoeken