API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · function_roles

Function Role Schema

Schema ID
function_role
Collection
function_roles
Permissions
  • Readfunction_role_view
  • Createfunction_role_create
  • Editfunction_role_edit
  • Deletefunction_role_delete

Fields

Function Role Schema

function_roles4 permissions

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

slugstringrequired

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

1–50 charactersPatternread-only
labelDestringrequired

German label shown in the CRM UI.

1–100 characters
labelEnstringoptional

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

max 100 charactersnullable
labelEsstringoptional

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

max 100 charactersnullable
labelFrstringoptional

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

max 100 charactersnullable
labelNlstringoptional

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

max 100 charactersnullable
descriptionstringoptional
max 500 charactersnullable
enabledbooleanoptional

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

Default: true
allowsCustomTextbooleanoptional

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

Default: false
sortOrderintegeroptional
0 – 9999Default: 100
isBuiltInbooleanoptional

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

Default: falseread-only
colorstringoptional

Optional hex color for role badges in the CRM.

Patternnullable

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 + filterable
  • GET /api/v1/function_roles/<id> — Single entity
  • POST /api/v1/function_roles — Create
  • PATCH /api/v1/function_roles/<id> — Partial update
  • DELETE /api/v1/function_roles/<id> — Soft delete
  • GET /api/v1/function_roles/<id>/timeline — Audit + activities

Search