API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · shift_preferences

Shift Preference Schema

Schema-ID
shift_preference
Collection
shift_preferences
Permissions
  • Lezenshift_preference_view
  • Aanmakenshift_preference_create
  • Wijzigenshift_preference_edit
  • Verwijderenshift_preference_delete

Velden

Shift Preference Schema

shift_preferences4 permissions

Schema for employee shift preferences (Wunschzettel)

schedulePeriodIduuidvereist
employeeIduuidvereist
userIduuidvereist
statusstringoptioneel
DRAFTSUBMITTEDLOCKED
Default: "DRAFT"
submittedByuuidoptioneel
nullable
llmParseConfirmedByuuidoptioneel
nullable
availabilityobject[]optioneel
Default: []
startDatedatevereist
endDatedatevereist
typestringvereist
AVAILABLEUNAVAILABLEPREFERREDAVOID
notestringoptioneel
max. 500 tekensnullable
shiftPreferencesobject[]optioneel
Default: []
shiftBlockIduuidvereist
preferencestringvereist
LOVEPREFERNEUTRALAVOIDNEVER
weightnumberoptioneel

Importance weight

1 – 5Default: 3
colleaguePreferencesobject[]optioneel

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

Default: []
employeeIduuidvereist
typestringvereist
PREFER_WITHPREFER_NOT_WITH
notestringoptioneel
max. 500 tekensnullable
timePreferencesobjectoptioneel
nullable
preferMorningsbooleanoptioneel
Default: false
preferEveningsbooleanoptioneel
Default: false
preferNightsbooleanoptioneel
Default: false
preferWeekendsbooleanoptioneel
Default: false
avoidWeekendsbooleanoptioneel
Default: false
maxShiftsPerWeeknumberoptioneel
0 – 7nullable
preferBlocksbooleanoptioneel

Prefer consecutive shift blocks

Default: false
avoidShortChangeoversbooleanoptioneel

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

Default: false
tradeoffsobject[]optioneel

Conditional wishes (if-then tradeoffs)

max. 10 itemsDefault: []
ifConditionstringvereist
max. 500 tekens
thenAcceptstringvereist
max. 500 tekens
customWishesstringoptioneel

Free-text wishes, parsed by LLM

max. 3000 tekensnullable
preferenceWeightsobjectoptioneel

Relative importance of each preference dimension (1-10)

nullable
availabilitynumberoptioneel
1 – 10Default: 5
shiftTypenumberoptioneel
1 – 10Default: 5
colleaguenumberoptioneel
1 – 10Default: 3
timenumberoptioneel
1 – 10Default: 4
submittedAtdatetimeoptioneel
nullable
lockedAtdatetimeoptioneel
read-onlynullable
lockedByuuidoptioneel
read-onlynullable
llmParseResultobjectoptioneel

Parsed structured constraints from customWishes

nullable
llmParseConfirmedAtdatetimeoptioneel

When employee confirmed the LLM parse result

nullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/shift_preferences — Lijst, gepagineerd + filterbaar
  • GET /api/v1/shift_preferences/<id> — Enkele entity
  • POST /api/v1/shift_preferences — Aanmaken
  • PATCH /api/v1/shift_preferences/<id> — Gedeeltelijke update
  • DELETE /api/v1/shift_preferences/<id> — Soft-delete
  • GET /api/v1/shift_preferences/<id>/timeline — Audit + activiteiten

Zoeken