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

Performance Review Template Schema

ID du schéma
performance_review_template
Collection
performance_review_templates
Autorisations
  • Lireperformance_review_template_view
  • Créerperformance_review_template_create
  • Modifierperformance_review_template_edit
  • Supprimerperformance_review_template_delete

Champs

Performance Review Template Schema

performance_review_templates4 autorisations

Schema for validating performance review template entities (Fragebogen-Vorlagen für Mitarbeitergespräche)

namestringobligatoire

Template name

1–200 caractères
descriptionstringfacultatif

Template description

max. 2000 caractèresnullable
isActivebooleanfacultatif

Only active templates can be selected when creating new reviews

Par défaut : true
isDefaultbooleanfacultatif

Default template used when none is explicitly selected

Par défaut : false
versionintegerobligatoire

Template version, bumped when a referenced template is edited

≥ 1Par défaut : 1lecture seule
previousVersionIduuidfacultatif

Reference to the previous version when a new version is created

lecture seulenullable
localestringfacultatif

Primary locale for prompts

Par défaut : "de"
blocksobject[]obligatoire

Ordered list of question blocks. The last block is always the locked "Gesamtleistung" block (auto-enforced server-side).

min. 1 éléments
blockIduuidobligatoire

Stable block identifier

titlestringobligatoire

Block heading (Überschrift)

1–300 caractères
descriptionstringfacultatif

Optional helper text shown under the block heading

max. 2000 caractèresnullable
sortOrderintegerobligatoire

Sort order within the template

≥ 0
lockedbooleanfacultatif

Locked blocks (e.g. final "Gesamtleistung") cannot be edited or removed

Par défaut : false
questionsobject[]obligatoire
min. 1 éléments
questionIdstringobligatoire

Stable question identifier. Reserved IDs: __overall_rating, __overall_comment

1–100 caractères
promptstringobligatoire

Question text shown to participants

1–2000 caractères
helpTextstringfacultatif

Optional helper / context text

max. 2000 caractèresnullable
requiredbooleanobligatoire

If true, the question must be answered before submitting

Par défaut : true
typestringobligatoire

Primary answer type (always equals types[0] when types is set; kept for backward compat). SKILL_INTEREST is reserved for the auto-injected __skill_interests question.

FREETEXTRATING_1_5YES_NOSINGLE_CHOICEMULTI_CHOICEDATENUMBERSKILL_INTEREST
typesstring[]facultatif

Ordered list of answer sub-types. When set, the question renders one input per sub-type and the answer value is stored as an object keyed by sub-type.

min. 1 élémentsnullable
configobjectfacultatif

Type-specific configuration

nullable
maxCharsintegerfacultatif
1 – 50000nullable
minWordsintegerfacultatif
≥ 0nullable
maxWordsintegerfacultatif
≥ 1nullable
optionsstring[]facultatif
nullable
minSelectionsintegerfacultatif
≥ 1nullable
maxSelectionsintegerfacultatif
≥ 1nullable
minnumberfacultatif
nullable
maxnumberfacultatif
nullable
stepnumberfacultatif
nullable

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

Recherche