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

Customer Org Unit Schema

ID del esquema
customer_org_unit
Colección
customer_org_units
Permisos
  • Leercustomer_org_unit_view
  • Crearcustomer_org_unit_create
  • Modificarcustomer_org_unit_edit
  • Eliminarcustomer_org_unit_delete

Campos

Customer Org Unit Schema

customer_org_units4 permisos

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

customerPartyIduuidobligatorio

FK to the customer ORGANIZATION party this OU belongs to.

parentUnitIdstringopcional

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

PatrónValor por defecto: nulladmite null
namestringobligatorio

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

1–200 caracteres
shortCodestringopcional

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

máx. 20 caracteresValor por defecto: nulladmite null
headPersonPartyIdstringopcional

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

PatrónValor por defecto: nulladmite null
costCenterstringopcional

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

máx. 100 caracteresValor por defecto: nulladmite null
notesstringopcional
máx. 2000 caracteresValor por defecto: nulladmite null

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

Búsqueda