API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · customer_org_units

Customer Org Unit Schema

Schema ID
customer_org_unit
Collection
customer_org_units
Permissions
  • Readcustomer_org_unit_view
  • Createcustomer_org_unit_create
  • Editcustomer_org_unit_edit
  • Deletecustomer_org_unit_delete

Fields

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

customerPartyIduuidrequired

FK to the customer ORGANIZATION party this OU belongs to.

parentUnitIdstringoptional

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

PatternDefault: nullnullable
namestringrequired

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

1–200 characters
shortCodestringoptional

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

max 20 charactersDefault: nullnullable
headPersonPartyIdstringoptional

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
costCenterstringoptional

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

max 100 charactersDefault: nullnullable
notesstringoptional
max 2000 charactersDefault: nullnullable

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/customer_org_units — List, paginated + filterable
  • GET /api/v1/customer_org_units/<id> — Single entity
  • POST /api/v1/customer_org_units — Create
  • PATCH /api/v1/customer_org_units/<id> — Partial update
  • DELETE /api/v1/customer_org_units/<id> — Soft delete
  • GET /api/v1/customer_org_units/<id>/timeline — Audit + activities

Search