API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · function_roles

Function Role Schema

Schema-ID
function_role
Collection
function_roles
Permissions
  • Lezenfunction_role_view
  • Aanmakenfunction_role_create
  • Wijzigenfunction_role_edit
  • Verwijderenfunction_role_delete

Velden

Function Role Schema

function_roles4 permissions

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

slugstringvereist

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

1–50 tekensPatternread-only
labelDestringvereist

German label shown in the CRM UI.

1–100 tekens
labelEnstringoptioneel

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

max. 100 tekensnullable
labelEsstringoptioneel

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

max. 100 tekensnullable
labelFrstringoptioneel

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

max. 100 tekensnullable
labelNlstringoptioneel

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

max. 100 tekensnullable
descriptionstringoptioneel
max. 500 tekensnullable
enabledbooleanoptioneel

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

Default: true
allowsCustomTextbooleanoptioneel

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

Default: false
sortOrderintegeroptioneel
0 – 9999Default: 100
isBuiltInbooleanoptioneel

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

Default: falseread-only
colorstringoptioneel

Optional hex color for role badges in the CRM.

Patternnullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/function_roles — Lijst, gepagineerd + filterbaar
  • GET /api/v1/function_roles/<id> — Enkele entity
  • POST /api/v1/function_roles — Aanmaken
  • PATCH /api/v1/function_roles/<id> — Gedeeltelijke update
  • DELETE /api/v1/function_roles/<id> — Soft-delete
  • GET /api/v1/function_roles/<id>/timeline — Audit + activiteiten

Zoeken