Function Role Schema
Fields
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.
No fields match the filter.
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/function_roles— List, paginated + filterableGET /api/v1/function_roles/<id>— Single entityPOST /api/v1/function_roles— CreatePATCH /api/v1/function_roles/<id>— Partial updateDELETE /api/v1/function_roles/<id>— Soft deleteGET /api/v1/function_roles/<id>/timeline— Audit + activities