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

Shift Preference Schema

ID du schéma
shift_preference
Collection
shift_preferences
Autorisations
  • Lireshift_preference_view
  • Créershift_preference_create
  • Modifiershift_preference_edit
  • Supprimershift_preference_delete

Champs

Shift Preference Schema

shift_preferences4 autorisations

Schema for employee shift preferences (Wunschzettel)

schedulePeriodIduuidobligatoire
employeeIduuidobligatoire
userIduuidobligatoire
statusstringfacultatif
DRAFTSUBMITTEDLOCKED
Par défaut : "DRAFT"
submittedByuuidfacultatif
nullable
llmParseConfirmedByuuidfacultatif
nullable
availabilityobject[]facultatif
Par défaut : []
startDatedateobligatoire
endDatedateobligatoire
typestringobligatoire
AVAILABLEUNAVAILABLEPREFERREDAVOID
notestringfacultatif
max. 500 caractèresnullable
shiftPreferencesobject[]facultatif
Par défaut : []
shiftBlockIduuidobligatoire
preferencestringobligatoire
LOVEPREFERNEUTRALAVOIDNEVER
weightnumberfacultatif

Importance weight

1 – 5Par défaut : 3
colleaguePreferencesobject[]facultatif

References target employees by employeeId (not userId) so colleagues without a user account can be picked.

Par défaut : []
employeeIduuidobligatoire
typestringobligatoire
PREFER_WITHPREFER_NOT_WITH
notestringfacultatif
max. 500 caractèresnullable
timePreferencesobjectfacultatif
nullable
preferMorningsbooleanfacultatif
Par défaut : false
preferEveningsbooleanfacultatif
Par défaut : false
preferNightsbooleanfacultatif
Par défaut : false
preferWeekendsbooleanfacultatif
Par défaut : false
avoidWeekendsbooleanfacultatif
Par défaut : false
maxShiftsPerWeeknumberfacultatif
0 – 7nullable
preferBlocksbooleanfacultatif

Prefer consecutive shift blocks

Par défaut : false
avoidShortChangeoversbooleanfacultatif

Avoid late-then-early sequences beyond the legal ArbZG §5 minimum

Par défaut : false
tradeoffsobject[]facultatif

Conditional wishes (if-then tradeoffs)

max. 10 élémentsPar défaut : []
ifConditionstringobligatoire
max. 500 caractères
thenAcceptstringobligatoire
max. 500 caractères
customWishesstringfacultatif

Free-text wishes, parsed by LLM

max. 3000 caractèresnullable
preferenceWeightsobjectfacultatif

Relative importance of each preference dimension (1-10)

nullable
availabilitynumberfacultatif
1 – 10Par défaut : 5
shiftTypenumberfacultatif
1 – 10Par défaut : 5
colleaguenumberfacultatif
1 – 10Par défaut : 3
timenumberfacultatif
1 – 10Par défaut : 4
submittedAtdatetimefacultatif
nullable
lockedAtdatetimefacultatif
lecture seulenullable
lockedByuuidfacultatif
lecture seulenullable
llmParseResultobjectfacultatif

Parsed structured constraints from customWishes

nullable
llmParseConfirmedAtdatetimefacultatif

When employee confirmed the LLM parse result

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

Recherche