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

Setting Override Schema

ID du schéma
setting_override
Collection
setting_overrides
Autorisations
  • Liresetting_override_view
  • Créersetting_override_create
  • Modifiersetting_override_edit
  • Supprimersetting_override_delete

Champs

Setting Override Schema

setting_overrides4 autorisations

Generic hierarchical settings storage (ADR 0098)

settingKeystringobligatoire

Dotted lowercase key, e.g. "working_time.weekly_hours", "approval.budget_limit_eur", "hr.required_documents". The catalog of well-known keys is documented in ADR 0098.

1–200 caractèresMotif
scopestringobligatoire

Scope this override applies to. The settings-resolver tries USER → POSITION → OU-chain → TENANT and returns the first non-null hit.

TENANTORG_UNITPOSITIONUSER
scopeIduuidfacultatif

UUID of the scoped entity. Null only when scope=TENANT (the row applies to the whole tenant).

nullable
valueanyfacultatif

Effective value when this override wins resolver evaluation.

validFromdatefacultatif

Effective from this date (inclusive). Null = since-forever. Useful for working-time changes that take effect on a specific date.

nullable
validTodatefacultatif

Effective until this date (inclusive). Null = open-ended.

nullable
approvalRequiredbooleanfacultatif

When true (e.g. working-time changes at TENANT/ORG_UNIT scope requiring Betriebsrat approval), the override only applies once approvalState=APPROVED.

Par défaut : false
approvalStatestringfacultatif

Workflow state. Resolver only honours overrides with state=APPROVED. DRAFT rows are visible to admins but do not affect resolution.

DRAFTAPPROVEDREJECTED
Par défaut : "APPROVED"
reasonstringfacultatif

Free-text justification for the override (audit trail / Betriebsrat-Vorlage).

max. 1000 caractèresnullable

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

Recherche