API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · benefits

Benefit Schema

ID du schéma
benefit
Collection
benefits
Autorisations
  • Lirebenefit_view
  • Créerbenefit_create
  • Modifierbenefit_edit
  • Supprimerbenefit_delete

Champs

Benefit Schema

benefits4 autorisations

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

namestringobligatoire

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

1–200 caractères
descriptionstringfacultatif

Short description shown on the benefit card

max. 5000 caractèresnullable
longDescriptionstringfacultatif

Full description shown in the detail dialog (Markdown allowed)

max. 20000 caractèresnullable
categorystringobligatoire

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

MOBILITYHEALTHFOODFINANCEEDUCATIONEQUIPMENTFAMILYOTHER
iconKeystringfacultatif

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

max. 64 caractèresnullable
coverImageUrlstringfacultatif

Optional URL to a cover image displayed on the benefit card

max. 2000 caractèresnullable
bookingModestringobligatoire

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

INTERNALEXTERNAL_LINKHYBRID
externalUrlstringfacultatif

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

max. 2000 caractèresnullable
internalInstructionsstringfacultatif

Instructions shown to employees when booking via INTERNAL/HYBRID mode

max. 10000 caractèresnullable
monthlyValuenumberfacultatif

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

≥ 0nullable
eligibilitystringfacultatif

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

max. 1000 caractèresnullable
availableSlotsnumberfacultatif

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

≥ 0nullable
isActivebooleanfacultatif

Whether the benefit is visible to employees in the catalog

Par défaut : true
sortOrdernumberfacultatif

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

nullable
tagsstring[]facultatif

Free-form tags for filtering

max. 20 élémentsnullable

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/benefits — Liste, paginée et filtrable
  • GET /api/v1/benefits/<id> — Une entité
  • POST /api/v1/benefits — Créer
  • PATCH /api/v1/benefits/<id> — Mise à jour partielle
  • DELETE /api/v1/benefits/<id> — Suppression logique
  • GET /api/v1/benefits/<id>/timeline — Audit et activités

Recherche