API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · setting_overrides

Setting Override Schema

ID del esquema
setting_override
Colección
setting_overrides
Permisos
  • Leersetting_override_view
  • Crearsetting_override_create
  • Modificarsetting_override_edit
  • Eliminarsetting_override_delete

Campos

Setting Override Schema

setting_overrides4 permisos

Generic hierarchical settings storage (ADR 0098)

settingKeystringobligatorio

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 caracteresPatrón
scopestringobligatorio

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

TENANTORG_UNITPOSITIONUSER
scopeIduuidopcional

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

admite null
valueanyopcional

Effective value when this override wins resolver evaluation.

validFromdateopcional

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

admite null
validTodateopcional

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

admite null
approvalRequiredbooleanopcional

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

Valor por defecto: false
approvalStatestringopcional

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

DRAFTAPPROVEDREJECTED
Valor por defecto: "APPROVED"
reasonstringopcional

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

máx. 1000 caracteresadmite null

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/setting_overrides — Lista, paginada y filtrable
  • GET /api/v1/setting_overrides/<id> — Una entidad
  • POST /api/v1/setting_overrides — Crear
  • PATCH /api/v1/setting_overrides/<id> — Actualización parcial
  • DELETE /api/v1/setting_overrides/<id> — Eliminación lógica
  • GET /api/v1/setting_overrides/<id>/timeline — Auditoría y actividades

Búsqueda