API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · function_roles

Function Role Schema

ID del esquema
function_role
Colección
function_roles
Permisos
  • Leerfunction_role_view
  • Crearfunction_role_create
  • Modificarfunction_role_edit
  • Eliminarfunction_role_delete

Campos

Function Role Schema

function_roles4 permisos

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

slugstringobligatorio

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

1–50 caracteresPatrónsolo lectura
labelDestringobligatorio

German label shown in the CRM UI.

1–100 caracteres
labelEnstringopcional

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

máx. 100 caracteresadmite null
labelEsstringopcional

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

máx. 100 caracteresadmite null
labelFrstringopcional

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

máx. 100 caracteresadmite null
labelNlstringopcional

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

máx. 100 caracteresadmite null
descriptionstringopcional
máx. 500 caracteresadmite null
enabledbooleanopcional

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

Valor por defecto: true
allowsCustomTextbooleanopcional

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

Valor por defecto: false
sortOrderintegeropcional
0 – 9999Valor por defecto: 100
isBuiltInbooleanopcional

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

Valor por defecto: falsesolo lectura
colorstringopcional

Optional hex color for role badges in the CRM.

Patrónadmite null

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/function_roles — Lista, paginada y filtrable
  • GET /api/v1/function_roles/<id> — Una entidad
  • POST /api/v1/function_roles — Crear
  • PATCH /api/v1/function_roles/<id> — Actualización parcial
  • DELETE /api/v1/function_roles/<id> — Eliminación lógica
  • GET /api/v1/function_roles/<id>/timeline — Auditoría y actividades

Búsqueda