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

Function Role Schema

ID du schéma
function_role
Collection
function_roles
Autorisations
  • Lirefunction_role_view
  • Créerfunction_role_create
  • Modifierfunction_role_edit
  • Supprimerfunction_role_delete

Champs

Function Role Schema

function_roles4 autorisations

Tenant-managed taxonomy slug for contact function roles (`party_relationship.functionRoles`). See docs/specs/campaigns.md §Recipient-Resolver.

slugstringobligatoire

Uppercase snake-case slug used in party_relationship.functionRoles[] and the recipient-resolver. Immutable after creation.

1–50 caractèresMotiflecture seule
labelDestringobligatoire

German label shown in the CRM UI.

1–100 caractères
labelEnstringfacultatif

English label (optional). Falls back to labelDe if missing.

max. 100 caractèresnullable
labelEsstringfacultatif

Spanish label (optional, ADR 1033). Falls back to labelEn, then labelDe.

max. 100 caractèresnullable
labelFrstringfacultatif

French label (optional, ADR 1033). Falls back to labelEn, then labelDe.

max. 100 caractèresnullable
labelNlstringfacultatif

Dutch label (optional). Falls back to labelEn, then labelDe.

max. 100 caractèresnullable
descriptionstringfacultatif
max. 500 caractèresnullable
enabledbooleanfacultatif

If false, the role is hidden from pickers but existing assignments remain valid.

Par défaut : true
allowsCustomTextbooleanfacultatif

If true, contacts with this role get a free-text supplement field (classic "OTHER" behaviour).

Par défaut : false
sortOrderintegerfacultatif
0 – 9999Par défaut : 100
isBuiltInbooleanfacultatif

True for roles seeded from FUNCTION_ROLES constants. Built-in roles cannot be deleted, only disabled.

Par défaut : falselecture seule
colorstringfacultatif

Optional hex color for role badges in the CRM.

Motifnullable

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

Recherche