Function Role Schema
Felder
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.
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.
Keine Felder passen zum Filter.
Standard-Endpoints
Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:
GET /api/v1/function_roles— Liste, paginiert + filterbarGET /api/v1/function_roles/<id>— Einzelne EntityPOST /api/v1/function_roles— AnlegenPATCH /api/v1/function_roles/<id>— Teil-UpdateDELETE /api/v1/function_roles/<id>— Soft-DeleteGET /api/v1/function_roles/<id>/timeline— Audit + Aktivitäten