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

Business Hour Model Schema

ID du schéma
business_hour_model
Collection
business_hour_models
Autorisations
  • Lirebusiness_hour_model_view
  • Créerbusiness_hour_model_create
  • Modifierbusiness_hour_model_edit
  • Supprimerbusiness_hour_model_delete

Champs

Business Hour Model Schema

business_hour_models4 autorisations

Schema for validating business hour model entities

namestringobligatoire

Business hour model name

1–200 caractères
timezonestringobligatoire

IANA timezone identifier (e.g. Europe/Berlin)

scheduleobject[]obligatoire

Weekly schedule entries

dayOfWeeknumberobligatoire

Weekday: 0 = Monday … 6 = Sunday (not JS Date.getDay)

0 – 6
startTimestringobligatoire
Motif
endTimestringobligatoire
Motif
isActivebooleanobligatoire
holidaysobject[]facultatif

Holiday definitions

Par défaut : []
datedateobligatoire
namestringobligatoire
isRecurringbooleanobligatoire
holidayCountrystringfacultatif

ISO country code used to auto-fetch holidays (e.g. DE, AT, CH)

max. 5 caractères
holidaySubdivisionstringfacultatif

ISO 3166-2 subdivision code for regional holidays (e.g. DE-BY)

max. 10 caractères
isDefaultbooleanobligatoire

Whether this is the default business hour model

isActivebooleanobligatoire

Whether this business hour model is active

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

Recherche