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

Benefit Schema

ID del esquema
benefit
Colección
benefits
Permisos
  • Leerbenefit_view
  • Crearbenefit_create
  • Modificarbenefit_edit
  • Eliminarbenefit_delete

Campos

Benefit Schema

benefits4 permisos

Schema for validating benefit catalog entries (Mitarbeiterbenefits, von HR gepflegt)

namestringobligatorio

Display name of the benefit (e.g. "JobRad", "Urban Sports Club")

1–200 caracteres
descriptionstringopcional

Short description shown on the benefit card

máx. 5000 caracteresadmite null
longDescriptionstringopcional

Full description shown in the detail dialog (Markdown allowed)

máx. 20000 caracteresadmite null
categorystringobligatorio

High-level category, drives icon/color in catalog view

MOBILITYHEALTHFOODFINANCEEDUCATIONEQUIPMENTFAMILYOTHER
iconKeystringopcional

Optional icon name from the shared Icons component (e.g. "Bike", "Heart", "GraduationCap")

máx. 64 caracteresadmite null
coverImageUrlstringopcional

Optional URL to a cover image displayed on the benefit card

máx. 2000 caracteresadmite null
bookingModestringobligatorio

INTERNAL = booked via app with HR approval; EXTERNAL_LINK = redirect to provider page only; HYBRID = both options available

INTERNALEXTERNAL_LINKHYBRID
externalUrlstringopcional

Landing page of the benefit provider (used for EXTERNAL_LINK and HYBRID modes)

máx. 2000 caracteresadmite null
internalInstructionsstringopcional

Instructions shown to employees when booking via INTERNAL/HYBRID mode

máx. 10000 caracteresadmite null
monthlyValuenumberopcional

Optional monetary value per month in EUR (for display purposes only)

≥ 0admite null
eligibilitystringopcional

Free-form eligibility criteria (e.g. "ab 6 Monaten Betriebszugehörigkeit") for display only

máx. 1000 caracteresadmite null
availableSlotsnumberopcional

Optional cap on the number of active bookings; null means unlimited

≥ 0admite null
isActivebooleanopcional

Whether the benefit is visible to employees in the catalog

Valor por defecto: true
sortOrdernumberopcional

Optional manual sort order for the catalog view (lower comes first)

admite null
tagsstring[]opcional

Free-form tags for filtering

máx. 20 elementosadmite 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/benefits — Lista, paginada y filtrable
  • GET /api/v1/benefits/<id> — Una entidad
  • POST /api/v1/benefits — Crear
  • PATCH /api/v1/benefits/<id> — Actualización parcial
  • DELETE /api/v1/benefits/<id> — Eliminación lógica
  • GET /api/v1/benefits/<id>/timeline — Auditoría y actividades

Búsqueda