Function Role Schema
Campos
Function Role Schema
Tenant-managed taxonomy slug for contact function roles (`party_relationship.functionRoles`). See docs/specs/campaigns.md §Recipient-Resolver.
slug
Uppercase snake-case slug used in party_relationship.functionRoles[] and the recipient-resolver. Immutable after creation.
labelDe
German label shown in the CRM UI.
labelEn
English label (optional). Falls back to labelDe if missing.
labelEs
Spanish label (optional, ADR 1033). Falls back to labelEn, then labelDe.
labelFr
French label (optional, ADR 1033). Falls back to labelEn, then labelDe.
labelNl
Dutch label (optional). Falls back to labelEn, then labelDe.
description
enabled
If false, the role is hidden from pickers but existing assignments remain valid.
allowsCustomText
If true, contacts with this role get a free-text supplement field (classic "OTHER" behaviour).
sortOrder
isBuiltIn
True for roles seeded from FUNCTION_ROLES constants. Built-in roles cannot be deleted, only disabled.
color
Optional hex color for role badges in the CRM.
Ningún campo coincide con el filtro.
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/function_roles— Lista, paginada y filtrableGET /api/v1/function_roles/<id>— Una entidadPOST /api/v1/function_roles— CrearPATCH /api/v1/function_roles/<id>— Actualización parcialDELETE /api/v1/function_roles/<id>— Eliminación lógicaGET /api/v1/function_roles/<id>/timeline— Auditoría y actividades